#3972 closed defect (fixed)
Every single doc page has raw 'Last changed: $Date$' still stuck in it
Reported by: | jidanni | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 7.8.2 |
Component: | Docs | Version: | git-releasebranch78 |
Keywords: | Cc: | ||
CPU: | Unspecified | Platform: | Unspecified |
Description
Every single doc page has this raw 'Last changed: $Date$' stuck in it
$ w3m -dump https://grass.osgeo.org/grass79/manuals/helptext.html | fgrep $ Last changed: $Date$
which make zero sense to the reader.
Change History (6)
comment:2 by , 5 years ago
For the related discussion, see https://github.com/OSGeo/grass/pull/11 and grass-dev archive
comment:4 by , 5 years ago
Milestone: | → 7.8.2 |
---|---|
Version: | unspecified → git-releasebranch78 |
ok agreed: I have commented out the old SVN $Date$
entries:
comment:5 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:6 by , 5 years ago
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., ifgit-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
: ofgit-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.