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

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

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Dec 18, 2007, 11:21 UTC
Message-ID
<4767AD2E.4040906@viscovery.net>
In-Reply-To
<7vejdk1g3h.fsf@gitster.siamese.dyndns.org>
Junio C Hamano schrieb:
> Sounds sensible.  Applied.

It seems lately I can't get a thing right on the first try. Would you please squash this in as long as you haven't pushed out the commit? $count is now unused.

Thank you!
--- >8 ---
diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index e730897..f8bdc14 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
Previous: Junio C Hamano
Message 3 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.