{"thread":{"id":"10858","subject":"[PATCH] git-commit: Pass commit SHA-1 hash to post-commit hook.","startedAt":"2007-11-14T00:29:36Z","lastAt":"2007-11-14T00:29:36Z","messageCount":1,"participants":["David Symonds"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"59795","messageId":"11950001762286-git-send-email-dsymonds@gmail.com","threadId":"10858","inReplyTo":null,"subject":"[PATCH] git-commit: Pass commit SHA-1 hash to post-commit hook.","fromName":"David Symonds","fromEmail":"dsymonds@gmail.com","sentAt":"2007-11-14T00:29:36Z","receivedAt":"2007-11-14T00:29:36Z","isPatch":true,"sender":{"key":"dsymonds@gmail.com","avatar":"https://gravatar.com/avatar/b22f5051cbfc11836e36cf7a690e6cde4e225d835e13295ff98d15c7a9ee3c0f?d=mp&s=160"},"body":"Signed-off-by: David Symonds <dsymonds@gmail.com>\n---\n Documentation/hooks.txt |    4 ++--\n git-commit.sh           |    2 +-\n 2 files changed, 3 insertions(+), 3 deletions(-)\n\ndiff --git a/Documentation/hooks.txt b/Documentation/hooks.txt\nindex f110162..d5b18f1 100644\n--- a/Documentation/hooks.txt\n+++ b/Documentation/hooks.txt\n@@ -81,8 +81,8 @@ The default 'commit-msg' hook, when enabled, detects duplicate\n post-commit\n -----------\n \n-This hook is invoked by `git-commit`.  It takes no\n-parameter, and is invoked after a commit is made.\n+This hook is invoked by `git-commit`.  It is passed one\n+parameter (the new commit's SHA-1 hash), and is invoked after a commit is made.\n \n This hook is meant primarily for notification, and cannot affect\n the outcome of `git-commit`.\ndiff --git a/git-commit.sh b/git-commit.sh\nindex 4853397..fff58cb 100755\n--- a/git-commit.sh\n+++ b/git-commit.sh\n@@ -616,7 +616,7 @@ then\n \tgit gc --auto\n \tif test -x \"$GIT_DIR\"/hooks/post-commit\n \tthen\n-\t\t\"$GIT_DIR\"/hooks/post-commit\n+\t\t\"$GIT_DIR\"/hooks/post-commit $commit\n \tfi\n \tif test -z \"$quiet\"\n \tthen\n-- \n1.5.3.1\n"}]}