Some smudge-and-clean filters for Git working directories.
Converts keywords of the form
Example of the effect of svnid.smudge.pl:
- The subversion-style file name makefile is replaced by a relative path doc/makefile.
- The subversion-style revision number is replaced by a short commit-hash 9e2eb0a because Git does not have revision numbers.
- The UTC date and time are the same as in Subversion.
- The author name is used instead of the Subversion-style Unix account username.
Note that Subversion expands keywords whenever you do a commit, but Git only runs smudge filters when you do a checkout. So if you want the keywork expansion to reflect the commit-hash and commit-time of the latest commit, you must force a checkout, for example by running the "touch" command on the recently committed files and then running git checkout on those files.