diff options
author | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2016-01-19 21:23:16 +0100 |
---|---|---|
committer | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2016-01-19 21:23:16 +0100 |
commit | 7f000a2d7368367f8c6d3bf7c15e7ad7b0782952 (patch) | |
tree | 0223fe57fdada7bd939305e2f73f4d9d1cf64a9b /examples | |
parent | c36d5d7ea6a12bfeb163dc91b1658cc454f38bab (diff) |
examples/hooks/pre-commit: Add warning in comments re aborted commit.
Fixes #26.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/hooks/pre-commit | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/hooks/pre-commit b/examples/hooks/pre-commit index b91635d..de66e3e 100644 --- a/examples/hooks/pre-commit +++ b/examples/hooks/pre-commit @@ -2,6 +2,17 @@ # # An example hook script to store metadata information using # metastore on each commit. +# +# WARNING: +# +# If the commit is aborted (e.g. by not entering any synopsis), +# then updated metastore file (.metadata by default) is not reverted, +# so its new version remains in the index. +# To undo any changes in metastore file written since HEAD commit, +# you may want to reset and checkout HEAD version of the file: +# +# git reset HEAD -- .metadata +# git checkout HEAD -- .metadata MSFILE=".metadata" |