git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git add to ignore whitespaces, some day?
@ 2015-02-27  0:09 Marc-André Lureau
  2015-03-04 10:05 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Marc-André Lureau @ 2015-02-27  0:09 UTC (permalink / raw)
  To: git

Hey,

It would be nice if git-add could be told to ignore whitespace
changes, wouldn't it?

According to SO, I am not the one to think so:
http://stackoverflow.com/questions/3515597/git-add-only-non-whitespace-changes

A change to add--interactive would be as simple as adding the diff -b
or -w option like:
my @diff = run_cmd_pipe("git", @diff_cmd, "-w", "--", $path);

But I wonder if this should be configured in a diff.ignorews or passed
as an argument to git add. Opinions?

-- 
Marc-André Lureau

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-04 10:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-27  0:09 git add to ignore whitespaces, some day? Marc-André Lureau
2015-03-04 10:05 ` Jeff King

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).