[GRASS-dev] [GRASS GIS] #3972: Every single doc page has raw 'Last changed: $Date$' still stuck in it

GRASS GIS trac at osgeo.org
Mon Nov 18 11:34:57 PST 2019


#3972: Every single doc page has raw 'Last changed: $Date$' still stuck in it
--------------------------+---------------------------------
  Reporter:  jidanni      |      Owner:  grass-dev@…
      Type:  defect       |     Status:  closed
  Priority:  minor        |  Milestone:  7.8.2
 Component:  Docs         |    Version:  git-releasebranch78
Resolution:  fixed        |   Keywords:
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+---------------------------------

Comment (by Bas Couwenberg):

 You can use `$Format:%ci$` in the file and mark such files with `export-
 subst` in `.gitattributes`.

 From `gitattributes(5)`:
 >        `export-subst`
 >           If the attribute `export-subst` is set for a file then Git
 will expand several placeholders when adding this file to an archive. The
 expansion depends on the availability of a commit ID, i.e., if `git-
 archive(1)` has been
 >           given a tree instead of a commit or a tag then no replacement
 will be done. The placeholders are the same as those for the option
 `--pretty=format`: of `git-log(1)`, except that they need to be wrapped
 like this:
 >           `$Format:PLACEHOLDERS$` in the file. E.g. the string
 `$Format:%H$` will be replaced by the commit hash.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3972#comment:6>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list