diff options
author | Andreas Ericsson <ae@op5.se> | 2006-01-04 16:17:59 +0000 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-01-24 17:27:33 -0800 |
commit | 8a3ee7c31469b5418a556a87cbac74509ded1cac (patch) | |
tree | 8ddf10c9b138192e4369db735248cde6f91a11e7 /mailinfo.c | |
parent | dcc6e28f70574bf3756752f114b5119c5cb43375 (diff) | |
download | git-8a3ee7c31469b5418a556a87cbac74509ded1cac.tar.gz |
update-hook: Major overhaul (handling tags, mainly).
This is the update hook we use in all our git-repos.
It has some improvements over the original version, namely:
* Don't send every commit since dawn of time when adding a new tag.
* When updating an annotated tag, just send the diffs since the last tag.
* Add diffstat output for 'normal' commits (top) and annotated tags (bottom).
* Block un-annotated tags in shared repos.
I'm a bit uncertain about that last one, but it demonstrates how to
disallow updates of a ref which we use, so I kept it.
Note that git-describe is needed for the "changes since last annotated tag"
thing to work.
Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'mailinfo.c')
0 files changed, 0 insertions, 0 deletions