Re: [PATCH v1 1/2] log -G: Ignore binary files
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 24, 2018, 02:32 UTC
- Message-ID
- <xmqq1s7b434u.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20181122162024.GD28192@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 8 quoted lines
>> + if ((o->pickaxe_opts & DIFF_PICKAXE_KIND_G) && >> + ((!textconv_one && diff_filespec_is_binary(o->repo, p->one)) || >> + (!textconv_two && diff_filespec_is_binary(o->repo, p->two)))) >> + return 0; > > If the user passes "-a" to treat binary files as text, we should > probably skip the binary check. I think we'd need to check > "o->flags.text" here.
Yeah, I forgot about that option. It would give an escape hatch that has a sane explanation.