Skip to content

Commit

Permalink
The "table-of-contents" in the update hook script should match the body
Browse files Browse the repository at this point in the history
44478d9 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>
  • Loading branch information
Andy Parkins authored and Junio C Hamano committed Feb 14, 2007
1 parent f5d4305 commit 9a894e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/hooks--update
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ announcerecipients=$(git-repo-config hooks.announcelist)
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)
Expand Down Expand Up @@ -165,7 +165,7 @@ case "$refname_type" in
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)"
Expand Down

0 comments on commit 9a894e8

Please sign in to comment.