Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I add a metadata to a source file in eclipse on save/commit/upload?

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.

like image 484
mritz_p Avatar asked Mar 23 '26 02:03

mritz_p


1 Answers

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!

like image 104
user1338062 Avatar answered Mar 25 '26 17:03

user1338062



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!