summaryrefslogtreecommitdiffstats
path: root/git-receive-pack.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2007-07-03 07:05:31 +0000
committerJunio C Hamano <junio@hera.kernel.org>2007-07-03 07:05:31 +0000
commit1d90cb06fff9524ece5485f8d716da466af822d7 (patch)
treec8d3e02e22a6f7ba2a13c8bd0adce3c8d089c4e2 /git-receive-pack.html
parentd526ba9b47b4ea5c29f3e49e8250babef215eb37 (diff)
downloadgit-htmldocs-1d90cb06fff9524ece5485f8d716da466af822d7.tar.gz
Autogenerated HTML docs for v1.5.3-rc0
Diffstat (limited to 'git-receive-pack.html')
-rw-r--r--git-receive-pack.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/git-receive-pack.html b/git-receive-pack.html
index 6de8debec..6e52400dc 100644
--- a/git-receive-pack.html
+++ b/git-receive-pack.html
@@ -317,6 +317,8 @@ standard input of the hook will be one line per ref to be updated:</p>
<p>The refname value is relative to $GIT_DIR; e.g. for the master
head this is "refs/heads/master". The two sha1 values before
each refname are the object names for the refname before and after
+the update. Refs to be created will have sha1-old equal to 0{40},
+while refs to be deleted will have sha1-new equal to 0{40}, otherwise
sha1-old and sha1-new should be valid objects in the repository.</p>
<p>This hook is called before any refname is updated and before any
fast-forward checks are performed.</p>
@@ -337,6 +339,7 @@ and is executable, it is invoked once per ref, with three parameters:</p>
head this is "refs/heads/master". The two sha1 arguments are
the object names for the refname before and after the update.
Note that the hook is called before the refname is updated,
+so either sha1-old is 0{40} (meaning there is no such ref yet),
or it should match what is recorded in refname.</p>
<p>The hook should exit with non-zero status if it wants to disallow
updating the named ref. Otherwise it should exit with zero.</p>
@@ -360,6 +363,8 @@ for each successfully updated ref:</p>
head this is "refs/heads/master". The two sha1 values before
each refname are the object names for the refname before and after
the update. Refs that were created will have sha1-old equal to
+0{40}, while refs that were deleted will have sha1-new equal to
+0{40}, otherwise sha1-old and sha1-new should be valid objects in
the repository.</p>
<p>Using this hook, it is easy to generate mails describing the updates
to the repository. This example script sends one mail message per
@@ -425,7 +430,7 @@ exec git-update-server-info</tt></pre>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 16-Jun-2007 09:49:17 UTC
+Last updated 03-Jul-2007 07:03:43 UTC
</div>
</div>
</body>