Skip to content

Commit

Permalink
filter-branch: Remove broken and unnecessary summary of rewritten refs.
Browse files Browse the repository at this point in the history
There was an attempt to list the refs that were rewritten by filtering
the output of 'git show-ref' for 'refs/original'. But it got the
grep argument wrong, which did not account for the SHA1 that is listed
before the ref.

Moreover, right before this summary is the loop that actually does the
rewriting, and the rewritten refs are listed there anyway. So this extra
summary is plainly too verbose.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Johannes Sixt authored and gitster committed Dec 18, 2007
1 parent 02ff625 commit 91c3ace
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions git-filter-branch.sh
Expand Up @@ -342,7 +342,6 @@ done < "$tempdir"/heads

_x40='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
_x40="$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40"
count=0
echo
while read ref
do
Expand Down Expand Up @@ -380,7 +379,6 @@ do
;;
esac
git update-ref -m "filter-branch: backup" "$orig_namespace$ref" $sha1
count=$(($count+1))
done < "$tempdir"/heads

# TODO: This should possibly go, with the semantics that all positive given
Expand Down Expand Up @@ -423,9 +421,6 @@ fi

cd ../..
rm -rf "$tempdir"
echo
test $count -gt 0 && echo "These refs were rewritten:"
git show-ref | grep ^"$orig_namespace"

unset GIT_DIR GIT_WORK_TREE GIT_INDEX_FILE
test -z "$ORIG_GIT_DIR" || GIT_DIR="$ORIG_GIT_DIR" && export GIT_DIR
Expand Down

0 comments on commit 91c3ace

Please sign in to comment.