Merge branch 'master' of github.com:simh/simh

This commit is contained in:
Mark Pizzolato 2013-01-23 14:21:56 -08:00
commit 2f4de5c4b1
4 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,28 @@
This dirctory contains a set of git hook scripts which are useful when
working with this repository to make the git commit id available when
building simulators to uniquely identify the inputs to that build.
It is ONLY useful for folks who clone this as a repository and build
in the working directory of that repository.
Folks who download zip archives of the repository do not currently
have the ability to get the commit id which the archive is a snapshot
of. Work is being done to solve this issue for uses of the archive
snapshots as well.
To use these scripts automatically, copy these files to the .git/hooks
directory of the current repository. This can be done with the
following commands:
$ cd Visual\ Studio\ Projects/git-hooks
$ chmod +x post*
$ cp post* ../../.git/hooks/
Note: You ONLY need to copy these hook scripts once for a particular
clone of the repository. Once these are installed they will
survive as you pull subsequent revisions from the github repo.
If you clone the repository to another platform, then you'll
need to copy the hooks to the .git/hooks directory again.

View file

@ -0,0 +1,5 @@
#!/bin/sh
#
# 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

View file

@ -0,0 +1,5 @@
#!/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

View file

@ -0,0 +1,5 @@
#!/bin/sh
#
# 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