From: Jeff King Date: Tue, 20 Mar 2018 03:45:46 GMT Subject: Re: .gitattributes override behavior (possible bug, or documentation bug) Message-ID: <20180320034545.GA12938@sigill.intra.peff.net> In-Reply-To: On Mon, Mar 19, 2018 at 08:33:15PM -0700, Junio C Hamano wrote: > Jeff King writes: > > > The best you can probably do is: > > > > /.readme-docs/* diff=foo > > > > Since you have no diff.foo.* config, that will behave in the default way > > (including respecting the usual "is it binary" checks). So a bit hacky, > > but I think it would work as "ignore prior diff". > > You can say > > /.readme-docs/* !diff > > I think. Thre is a difference between setting it to "false" > (i.e. Unset) and reverting it to unspecified state. > > Isn't that what you want here? Ah, yes, I totally forgot that existed. That's much better than the hackery I proposed. -Peff