Re: .gitattributes override behavior (possible bug, or documentation bug)
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 20, 2018, 03:33 UTC
- Message-ID
- <xmqq8tanto90.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20180320023423.GA10143@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 7 quoted lines
> 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?