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

Re: [PATCH 1/2] filter-branch: Simplify parent computation.

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 9, 2007, 20:44 UTC
Message-ID
<7vmyz8eu3y.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<200706082328.39758.johannes.sixt@telecom.at>
Johannes Sixt <johannes.sixt@telecom.at> writes:
> @@ -332,18 +321,19 @@ mkdir ../map # map old->new commit ids for rewriting 
> parents
>  
Crap.  Why is this patch line-wrapped X-<.
Show 7 quoted lines
> ... 
>  i=0
> -while read commit; do
> +while read commit parents; do
>  	i=$(($i+1))
>  	printf "\rRewriting commits... ($i/$commits)"
>  

Crap. Where did that "\rRewriting commits..." come from? The other Johannes had the same in his patch.

Show 9 quoted lines
> @@ -398,7 +388,7 @@ while read commit; do
>  		done > ../map/$commit
>  done <../revs
>  
> -src_head=$(tail -n 1 ../revs)
> +src_head=$(tail -n 1 ../revs | sed -e 's/ .*//')
>  target_head=$(head -n 1 ../map/$src_head)
>  case "$target_head" in
>  '')
Crap.  I seem to have "tee" there that stores them to ../map/$commit.

Anyway, I've manually fixed up the offending three patches (two from you and one from the other Johannes) and pushed the results out on 'next'.

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 4 in “filter-branch: Simplify parent computation.”
  1. 1/2 filter-branch: Simplify parent computation.Johannes Sixt, Jun 8, 2007
  2. Johannes SchindelinJun 8, 2007
  3. Junio C HamanoJun 9, 2007
  4. Johannes SchindelinJun 10, 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.