Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Teach diff -a as shorthand for --text
[gitweb.git]
/
builtin-diff-stages.c
diff --git
a/builtin-diff-stages.c
b/builtin-diff-stages.c
index 7c157ca889eaf85b38be2764fca83814bb83a3f4..30931fe0498753ed3a7f68be064027391a82e677 100644
(file)
--- a/
builtin-diff-stages.c
+++ b/
builtin-diff-stages.c
@@
-85,6
+85,9
@@
int cmd_diff_stages(int ac, const char **av, char **envp)
ac--; av++;
}
+ if (!diff_options.output_format)
+ diff_options.output_format = DIFF_FORMAT_RAW;
+
if (ac < 3 ||
sscanf(av[1], "%d", &stage1) != 1 ||
! (0 <= stage1 && stage1 <= 3) ||