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,448
  • 4
  • 30
  • 68
mritz_p
  • 2,988
  • 3
  • 27
  • 39

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
  • 10,623
  • 3
  • 64
  • 60