summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f5d4305)
raw | patch | inline | side by side (parent: f5d4305)
author | Andy Parkins <andyparkins@gmail.com> | |
Wed, 14 Feb 2007 11:20:32 +0000 (11:20 +0000) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 14 Feb 2007 18:14:26 +0000 (10:14 -0800) |
44478d99ee0 introduced a filter using "git-rev-parse --not --all" to the
log display to prevent the display of revisions already in the
repository. However, the table of contents generation didn't get that
same update.
This patch fixes that. The table of contents before the log and the log
now both display the same list of revisions.
Signed-off-by: Andy Parkins <andyparkins@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
log display to prevent the display of revisions already in the
repository. However, the table of contents generation didn't get that
same update.
This patch fixes that. The table of contents before the log and the log
now both display the same list of revisions.
Signed-off-by: Andy Parkins <andyparkins@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
templates/hooks--update | patch | blob | history |
index a7cf604dd0ee465ad3d8a874f105fe45c9e7c6e7..fd1f73d6aa48b104cc74d08dcb6a29bd3f8f08d9 100644 (file)
--- a/templates/hooks--update
+++ b/templates/hooks--update
allowunannotated=$(git-repo-config --bool hooks.allowunannotated)
# --- Check types
-newrev_type=$(git-cat-file -t "$newrev")
+newrev_type=$(git-cat-file -t $newrev)
case "$refname","$newrev_type" in
refs/tags/*,commit)
baserev=$(git-merge-base $oldrev $newrev)
# Commit with a parent
- for rev in $(git-rev-list $newrev ^$baserev)
+ for rev in $(git-rev-parse --not --all | git-rev-list --stdin $newrev ^$baserev)
do
revtype=$(git-cat-file -t "$rev")
echo " via $rev ($revtype)"