Expanding Git SHA1 information into a checkin without archiving?

Posted by Tim Lin on Stack Overflow See other posts from Stack Overflow or by Tim Lin
Published on 2010-05-17T22:01:24Z Indexed on 2010/05/17 22:10 UTC
Read the original article Hit count: 230

Filed under:
|
|

Is there a way to include git commit hashes inside a file everytime I commit? I can only find out how to do this during archiving but I haven't been able to find out how to do this for every commit.

I'm doing scientific programming with git as revision control, so this kind of functionality would be very helpful for reproducibility reasons (i.e., have the git hash automatically included in all result files and figures).

© Stack Overflow or respective owner

Related posts about git

Related posts about hash