@matheusbsbs / matheus-bagliano / commits / 9a894e8e7c
Fork 0

The "table-of-contents" in the update hook script should match the body

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>

Andy Parkins committed Feb 14, 2007 at 11:20 UTC 9a894e8e7c85794d39745eb83462a2001816ac3b
1 file changed +2 -2
templates/hooks--update
+2 -2
@@ -57,7 +57,7 @@ announcerecipients=$(git-repo-config hooks.announcelist)
57 allowunannotated=$(git-repo-config --bool hooks.allowunannotated)
58
59 # --- Check types
60 -newrev_type=$(git-cat-file -t "$newrev")
60 +newrev_type=$(git-cat-file -t $newrev)
61
62 case "$refname","$newrev_type" in
63 refs/tags/*,commit)
@@ -165,7 +165,7 @@ case "$refname_type" in
165 baserev=$(git-merge-base $oldrev $newrev)
166
167 # Commit with a parent
168 - for rev in $(git-rev-list $newrev ^$baserev)
168 + for rev in $(git-rev-parse --not --all | git-rev-list --stdin $newrev ^$baserev)
169 do
170 revtype=$(git-cat-file -t "$rev")
171 echo " via $rev ($revtype)"