X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=show-diff.c;h=1286dd1217582df17df629413f781010bc41f314;hb=f864ba7448564d06e8076d1b6a66eca00a337d8c;hp=bc3791aaaab22f345bcf2478fdced16cd5e1bdce;hpb=e2e5e98a40d6ed04b7acf791cc2243ff32923db3;p=git.git diff --git a/show-diff.c b/show-diff.c index bc3791aa..1286dd12 100644 --- a/show-diff.c +++ b/show-diff.c @@ -5,7 +5,7 @@ */ #include "cache.h" -static void show_differences(char *name, +static void show_differences(char *name, void *old_contents, unsigned long long old_size) { static char cmd[1000]; @@ -31,9 +31,9 @@ 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; + end = old + size; while (p < end) if (*p++ == '\n') lines ++; @@ -44,7 +44,7 @@ static void show_diff_empty(struct cache_entry *ce) if (startline) { putchar('-'); startline = 0; - } + } putchar(c); if (c == '\n') startline = 1;