From: Junio C Hamano Date: Sat, 24 Nov 2018 02:32:01 GMT Subject: Re: [PATCH v1 1/2] log -G: Ignore binary files Message-ID: In-Reply-To: <20181122162024.GD28192@sigill.intra.peff.net> Jeff King writes: >> + 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.