git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] filter-branch: Remove broken and unnecessary summary of rewritten refs.

From
Johannes Sixt <johannes.sixt@telecom.at>
Date
Dec 18, 2007, 07:30 UTC
Message-ID
<1197963047-15930-1-git-send-email-johannes.sixt@telecom.at>

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>
---
 git-filter-branch.sh |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index 29d35fd..e730897 100755
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
@@ -423,9 +423,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
-- 
1.5.4.rc0.73.gcaffa
Next: Junio C Hamano
Message 1 of 3 in “filter-branch: Remove broken and unnecessary summary of rewritten refs.”
  1. filter-branch: Remove broken and unnecessary summary of rewritten refs.Johannes Sixt, Dec 18, 2007
  2. Junio C HamanoDec 18, 2007
  3. Johannes SixtDec 18, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.