I have a bare (remote) GIT repository with the several users blessed to commit there. On repository clone/pull I want that each source file which contains magic $Id:$ is expanded to smth. like: $Id: <name-of-last-committer> <data>.
It'd be amazing if this expanded/collapsed magic string would not affect on file modification state.
I suppose it is done via hooks. I wonder if there are any ready-to-use such hooks? Or how my task with $Id can be solved? Thanks.
You should take a look at the section of Pro Git on keyword expansion - I'm sure you can adapt that solution to your needs: