1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

SCP: Add git commit time to commit id version information

This commit is contained in:
Mark Pizzolato
2018-03-09 02:58:40 -08:00
parent 4cbf4e4144
commit c8ca4161fa
7 changed files with 52 additions and 14 deletions

View File

@@ -2,4 +2,5 @@
#
# A hook script that is called after a successful
# checkout to record the commit-id in the working directory.
git log -1 --pretty="%H" >.git-commit-id
git log -1 --pretty="SIM_GIT_COMMIT_ID %H%nSIM_GIT_COMMIT_TIME %aI" >.git-commit-id

View File

@@ -2,4 +2,4 @@
#
# 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
git log -1 --pretty="SIM_GIT_COMMIT_ID %H%nSIM_GIT_COMMIT_TIME %aI" >.git-commit-id

View File

@@ -2,4 +2,5 @@
#
# A hook script that is called after a successful merge
# to record the commit-id in the working directory.
git log -1 --pretty="%H" >.git-commit-id
git log -1 --pretty="SIM_GIT_COMMIT_ID %H%nSIM_GIT_COMMIT_TIME %aI" >.git-commit-id