Re: Bug report : bad filter-branch (OSX only)
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 29, 2015, 05:39 UTC
- Message-ID
- <xmqqy4lbtrvj.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <20150429045600.GA10781@peff.net>
Jeff King <peff@peff.net> writes:
> I'm not sure of a solution short of replacing the use of sed here with > something else. perl would be a simple choice, but filter-branch does > not otherwise depend on it. We could use a shell "read" loop, but those > are quite slow (and filter-branch is slow enough as it is!).
You need to only skip the header part, right? I would imagine that
(
while read x && test -n "$x"
do
:;
done
cat
) <../commit | eval "$filter_msg"would not spin too much in shell loop, perhaps?