summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Baudis <pasky@ucw.cz>2005-04-13 08:46:35 (GMT)
committerPetr Baudis <xpasky@machine>2005-04-13 08:46:35 (GMT)
commitc57a3a91f1cc0d037e7b7992cbfa6f4213dcf37e (patch)
tree0323c14ecfac54b060a52ef54b9ea38377adede0
parente2e5e98a40d6ed04b7acf791cc2243ff32923db3 (diff)
downloadgit-c57a3a91f1cc0d037e7b7992cbfa6f4213dcf37e.zip
git-c57a3a91f1cc0d037e7b7992cbfa6f4213dcf37e.tar.gz
git-c57a3a91f1cc0d037e7b7992cbfa6f4213dcf37e.tar.bz2
[PATCH] Correct show-diff output for deleted files
My convention is that contrary to files trimmed to zero size, deleted files always go to /dev/null. This patch turns show-diff to abide this. Signed-off-by: Petr Baudis <pasky@ucw.cz>
-rw-r--r--show-diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/show-diff.c b/show-diff.c
index bc3791a..21c9045 100644
--- a/show-diff.c
+++ b/show-diff.c
@@ -31,7 +31,7 @@ static void show_diff_empty(struct cache_entry *ce)
int c = 0;
printf("--- %s\n", ce->name);
- printf("+++ %s\n", ce->name);
+ printf("+++ /dev/null\n");
p = old;
end = old + size;
while (p < end)