From: Junio C Hamano Date: Sat, 09 Jun 2007 20:44:01 GMT Subject: Re: [PATCH 1/2] filter-branch: Simplify parent computation. Message-ID: <7vmyz8eu3y.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <200706082328.39758.johannes.sixt@telecom.at> Johannes Sixt writes: > @@ -332,18 +321,19 @@ mkdir ../map # map old->new commit ids for rewriting > parents > Crap. Why is this patch line-wrapped X-<. > ... > 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. > @@ -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'.