summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-03-06 22:53:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-03-06 22:53:07 (GMT)
commit239d6eddcd9a260c25104aa9679252016a86900a (patch)
tree2d599cf5076a10469218676d1a5575a1b594ff74 /diff.c
parentf4464a3b7c9319011acf7b813b0217e244f4954e (diff)
parentb3f01ff29f7131e959bcfdfd004744d74d5fa319 (diff)
downloadgit-239d6eddcd9a260c25104aa9679252016a86900a.zip
git-239d6eddcd9a260c25104aa9679252016a86900a.tar.gz
git-239d6eddcd9a260c25104aa9679252016a86900a.tar.bz2
Merge branch 'jc/maint-diff-patch-header'
By Junio C Hamano * jc/maint-diff-patch-header: diff -p: squelch "diff --git" header for stat-dirty paths t4011: illustrate "diff-index -p" on stat-dirty paths t4011: modernise style
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index f47bffa..377ec1e 100644
--- a/diff.c
+++ b/diff.c
@@ -2255,7 +2255,7 @@ static void builtin_diff(const char *name_a,
struct emit_callback ecbdata;
const struct userdiff_funcname *pe;
- if (!DIFF_XDL_TST(o, WHITESPACE_FLAGS) || must_show_header) {
+ if (must_show_header) {
fprintf(o->file, "%s", header.buf);
strbuf_reset(&header);
}