I'm trying to do a fancy stuff here with Git hooks, but I don't really know how to do it (or if it's possible).
What I need to do is: in every commit I want to take its hash and then update a file in the commit with this hash.
Any ideas?