3

At work we use the svn $Id$-Property to track the most recent revision in our source files (particularily JavaScript files) on commit.

For smaller freelance projects at home (Web or Java) I use eclipse and local git version tracking.

I would love to add meta-data such as a timestamp or last saved revision to my source files. It doesn't matter much to me, whether the data would be added on saving, commiting or uploading a file.

A token replace method like svns $Id$ would be best, but I'm open to any other method.

Tonny Madsen
  • 12,628
  • 4
  • 31
  • 70
mritz_p
  • 3,008
  • 3
  • 28
  • 40

1 Answers1

1

Have a look at Git book's "Git attributes" section, the part speaking about custom clean/smudge filters is probably something you will find useful!

user1338062
  • 11,939
  • 3
  • 73
  • 67