Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
sample update-hook: sanely handle a new branch head.
author
Junio C Hamano
<junkio@cox.net>
Wed, 25 Jan 2006 01:37:01 +0000
(17:37 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Wed, 25 Jan 2006 01:38:06 +0000
(17:38 -0800)
Instead of showing all the history since the beginning of time
leading to the the branch head, show only the changes this new
branch brings to the world.
This originally came from Linus and tested by Andreas Ericsson.
Signed-off-by: Junio C Hamano <junkio@cox.net>
templates/hooks--update
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(from parent 1:
8a3ee7c
)
diff --git
a/templates/hooks--update
b/templates/hooks--update
index 27cea174d135eb82f9e0229a0adf4f4993c60f2d..d7a8f0a849523ebc280e06fe836f3bc448993d0c 100644
(file)
--- a/
templates/hooks--update
+++ b/
templates/hooks--update
@@
-68,7
+68,7
@@
then
refs/heads/*)
branch="${1##refs/heads/}"
echo "New branch '$branch' available with the following commits:"
- git-rev-list --pretty "$3"
+ git-rev-list --pretty "$3"
$(git-rev-parse --not --all)
;;
esac
else