From c57a3a91f1cc0d037e7b7992cbfa6f4213dcf37e Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Wed, 13 Apr 2005 01:46:35 -0700 Subject: [PATCH] [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 --- show-diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/show-diff.c b/show-diff.c index bc3791aaa..21c90453e 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) -- 2.30.2