diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-02-29 18:14:15 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-03-01 12:00:01 -0800 |
commit | 5597e84b514454f18bba7b13eee2feea04f0165b (patch) | |
tree | c106fefb2671cda492a7f1830e26252d2fd84aaf /t/t0000-basic.sh | |
parent | t4011: modernise style (diff) | |
download | tgif-5597e84b514454f18bba7b13eee2feea04f0165b.tar.xz |
t4011: illustrate "diff-index -p" on stat-dirty paths
The plumbing that looks at the working tree, i.e. "diff-index" and
"diff-files", always emit the "diff --git a/path b/path" header lines
without anything else for paths that are only stat-dirty (i.e. different
only because the cached stat information in the index no longer matches
that of the working tree, but the real contents are the same), when
these commands are run with "-p" option to produce patches.
Illustrate this current behaviour. Also demonstrate that with the "-w"
option, we (correctly) hold off showing a "diff --git" header until actual
differences have been found. This also suppresses the header for merely
stat-dirty files, which is inconsistent.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0000-basic.sh')
0 files changed, 0 insertions, 0 deletions