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'.