We have recently moved from using Visual SourceSafe for source control to using Git.
While SourceSafe has justifiably had a lot of criticism it has one feature which was quite useful: Keyword Expansion. Keyword tags could be added to source files. When SourceSafe checked in a file it would read the keywords and add informational comments to the head of the file.
The SourceSafe keyword we found most useful is $History: $. When the file is checked in the checkin comment is added as a comment to the head of the file. We find these checkin comments particularly useful in SQL scripts used to update objects such as stored procedures in a database.
Does Git have any equivalent method of inserting metadata comments into source files during commit?