RCS keyword expansion
- From
Peter Karlsson <peter@softwolves.pp.se>
- Date
- Oct 11, 2007, 14:47 UTC
- Message-ID
- <Pine.LNX.4.64.0710111542420.23849@ds9.cixit.se>
Hi!
I've looked and looked, but cannot figure out how to do RCS/CVS style keyword expansion with Git. The FAQ on the Wiki is quite cryptic on the subject, and my googling skills fail short.
I mainly want to have $Date$ expand in RCS/CVS manner, i.e to when the file was last changed. Possibly even have an $Id$ that gives me something useful (name and commit hash, perhaps?). Is it possible to do this? Can it be done through git-cvsserver?
I currently have my personal website in CVS and am using $Date$ to include a datestamp on the pages. I am considering converting the repository to Git, but only after I can get $Date$ expansion to work. I am considering having the website host believe it still is a cvs repository by using git-cvsserver, thus my question about expanding $Date$ through it.
-- \\// Peter - http://www.softwolves.pp.se/