Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
diff.c: --no-color to defeat diff.color configuration.
author
Junio C Hamano
<junkio@cox.net>
Fri, 7 Jul 2006 12:27:24 +0000
(
05:27
-0700)
committer
Junio C Hamano
<junkio@cox.net>
Fri, 7 Jul 2006 19:28:54 +0000
(12:28 -0700)
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
b68ea12
)
diff --git
a/diff.c
b/diff.c
index 4bea3066a8a01378a0574b5d6280a78ed88317d5..1bf1ed096759cb99ec75cd35caaa8644418f0e02 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-1625,6
+1625,8
@@
int diff_opt_parse(struct diff_options *options, const char **av, int ac)
}
else if (!strcmp(arg, "--color"))
options->color_diff = 1;
+ else if (!strcmp(arg, "--no-color"))
+ options->color_diff = 0;
else if (!strcmp(arg, "-w") || !strcmp(arg, "--ignore-all-space"))
options->xdl_opts |= XDF_IGNORE_WHITESPACE;
else if (!strcmp(arg, "-b") || !strcmp(arg, "--ignore-space-change"))