summaryrefslogtreecommitdiff
path: root/git-filter-branch.sh
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2007-12-18 07:30:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-12-18 20:00:26 (GMT)
commit91c3aced4c9b961e162f9acd706f4b03a85aed2c (patch)
tree925e16979cdeeeb82204283af8a5ee67f862863e /git-filter-branch.sh
parent02ff62504e12cb1925a59b6956508dc70984c5b4 (diff)
downloadgit-91c3aced4c9b961e162f9acd706f4b03a85aed2c.zip
git-91c3aced4c9b961e162f9acd706f4b03a85aed2c.tar.gz
git-91c3aced4c9b961e162f9acd706f4b03a85aed2c.tar.bz2
filter-branch: Remove broken and unnecessary summary of rewritten refs.
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>
Diffstat (limited to 'git-filter-branch.sh')
-rwxr-xr-xgit-filter-branch.sh5
1 files changed, 0 insertions, 5 deletions
diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index 3bb2f67..7f52b59 100755
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
@@ -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
@@ -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
@@ -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