1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-27 12:42:45 +00:00
Files
open-simh.simh/Visual Studio Projects/git-hooks/post-commit
2018-03-09 02:58:40 -08:00

6 lines
213 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="SIM_GIT_COMMIT_ID %H%nSIM_GIT_COMMIT_TIME %aI" >.git-commit-id