]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Document git-diff whitespace flags -b and -w
authorJakub Narebski <jnareb@gmail.com>
Sun, 3 Dec 2006 16:24:41 +0000 (17:24 +0100)
committerJunio C Hamano <junkio@cox.net>
Tue, 5 Dec 2006 00:30:54 +0000 (16:30 -0800)
Document git diff options -b / --ignore-space-change and
-w / --ignore-all-space, introduced by Johannes Schindelin
in commit 0d21efa5, "Teach diff about -b and -w flags".

The description of options is taken from GNU diff man page and
GNU Diffutils info documentation.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/diff-options.txt

index e112172ca57da75ce6c2dd447cc97c6aa2b6499e..9cdd171af74013340144ab60b703498001809502 100644 (file)
 -a::
        Shorthand for "--text".
 
+--ignore-space-change::
+       Ignore changes in amount of white space.  This ignores white
+       space at line end, and consider all other sequences of one or
+       more white space characters to be equivalent.
+
+-b::
+       Shorthand for "--ignore-space-change".
+
+--ignore-all-space::
+       Ignore white space when comparing lines.  This ignores
+       difference even if one line has white space where the other
+       line has none.
+
+-w::
+       Shorthand for "--ignore-all-space".
+
 For more detailed explanation on these common options, see also
 link:diffcore.html[diffcore documentation].