simh-testsetgenerator/Visual Studio Projects/git-hooks/post-commit

5 lines
170 B
Bash
Executable file

#!/bin/sh
#
# A hook script that is called after a successful
# commit is made to record the commit-id in the working directory.
git log -1 --pretty="%H" >.git-commit-id