From: Jeff King <peff@peff.net>
To: timothee.cour2@gmail.com
Cc: git@vger.kernel.org, sbeller@google.com
Subject: Re: how to ignore whitespace changes with --color-moved (git diff move detection)?
Date: Fri, 2 Feb 2018 01:51:47 -0500 [thread overview]
Message-ID: <20180202065146.GA16533@sigill.intra.peff.net> (raw)
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:
> 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
next prev parent reply other threads:[~2018-02-02 6:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-02 2:13 how to ignore whitespace changes with --color-moved (git diff move detection)? Timothee Cour
2018-02-02 6:51 ` Jeff King [this message]
2018-02-02 18:23 ` Stefan Beller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180202065146.GA16533@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=sbeller@google.com \
--cc=timothee.cour2@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).