aboutsummaryrefslogtreecommitdiff
path: root/t/t4013
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-07-03 16:01:06 +0100
committerJunio C Hamano <gitster@pobox.com>2007-07-03 13:44:30 -0700
commit3cb567386d5d0349bfb5e3aaf85e973faf685dda (patch)
tree86865561fd3ff11e22f3832eccd4a6e29d81f120 /t/t4013
parent9cb18f56fdee6885884f5f08bd5335a42d9034dc (diff)
downloadgit-3cb567386d5d0349bfb5e3aaf85e973faf685dda.tar.gz
git-3cb567386d5d0349bfb5e3aaf85e973faf685dda.tar.xz
diff --no-index: fix --name-status with added files
Without this patch, an added file would be reported as /dev/null. Noticed by David Kastrup. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013')
-rw-r--r--t/t4013/diff.diff_--name-status_dir2_dir3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/t4013/diff.diff_--name-status_dir2_dir b/t/t4013/diff.diff_--name-status_dir2_dir
new file mode 100644
index 000000000..ef7fdb733
--- /dev/null
+++ b/t/t4013/diff.diff_--name-status_dir2_dir
@@ -0,0 +1,3 @@
+$ git diff --name-status dir2 dir
+A dir/sub
+$