Re: how to ignore whitespace changes with --color-moved (git diff move detection)?
- From
Jeff King <peff@peff.net>
- Date
- Feb 2, 2018, 06:51 UTC
- Message-ID
- <20180202065146.GA16533@sigill.intra.peff.net>
- In-Reply-To
- <CANri+EwfsgS-s0TeeX0E6XoCnmCeq=CB0UDQ9=gjSXbe8C_5GQ@mail.gmail.com>
On Thu, Feb 01, 2018 at 06:13:52PM -0800, Timothee Cour wrote:
Show 9 quoted lines
> this PR from october 2017 was discussing a patch that'd introduce > `--color-moved-[no-]ignore-space-change` > https://public-inbox.org/git/20171025224620.27657-3-sbeller@google.com/ > > however not sure what happened since then as I can't find in `git help > diff` options even after `brew install --HEAD git` > > it's a really useful feature as it's a common use case (ppl move > blocks and reformat in same PR)
I think you can still do "--color-moved -w" to ignore whitespace. It's just that the defaults did not end up getting flipped.
-Peff