Opened 8 months ago

Closed 8 months ago

Last modified 8 months ago

#3972 closed defect (fixed)

Every single doc page has raw 'Last changed: $Date$' still stuck in it

Reported by: jidanni Owned by: grass-dev@…
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:1 Changed 8 months ago by jidanni

< which make zero sense to the reader.
> which makes zero sense to the reader.

comment:2 Changed 8 months ago by neteler

For the related discussion, see https://github.com/OSGeo/grass/pull/11 and grass-dev archive

comment:3 Changed 8 months ago by jidanni

Perhaps just strip it off, until the fix is confirmed.

comment:4 Changed 8 months ago by neteler

Milestone: 7.8.2
Version: unspecifiedgit-releasebranch78

ok agreed: I have commented out the old SVN $Date$ entries:

https://github.com/OSGeo/grass/pull/200

comment:6 Changed 8 months ago 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.

Note: See TracTickets for help on using tickets.