Re: diff/merge tool that ignores whitespace changes
- From
Torsten Bögershausen <tboegi@web.de>
- Date
- Sep 1, 2012, 20:41 UTC
- Message-ID
- <504272F0.3070701@web.de>
- In-Reply-To
- <fab86cd5-e3cf-4ddf-aa00-aafe44e8ce8c@zcs>
On 01.09.12 22:11, Enrico Weigelt wrote:
Show 11 quoted lines
> > <snip> > > Thanks folks, but that doesn't solve my problem. I'm looking for something > that's usable on command line or in scripts. > > Usecase a) > > * git-diff or git-format-patch or tig should not show differences > that are only whitespace changes (eg. differing linefeeds or > tabs vs. spaces, changed indentions, etc)
Would that help ?
git help diff
[snip]
--ignore-space-at-eol
Ignore changes in whitespace at EOL. -b, --ignore-space-change
Ignore changes in amount of whitespace. This ignores whitespace at
line end, and considers all other sequences of one or more
whitespace characters to be equivalent. -w, --ignore-all-space
Ignore whitespace when comparing lines. This ignores differences
even if one line has whitespace where the other line has none.