X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=git-export.c;h=6b5db93dbecf6251b69f873cd65b1f7e4e944460;hb=6eb7ed5403b7d57d5ed7e30d0cd0b312888ee95c;hp=e817c759bf4d407df47ed6860ed520262ec6613c;hpb=32347c375250fd470973a5d76185cac718955fd5;p=git.git diff --git a/git-export.c b/git-export.c index e817c759..6b5db93d 100644 --- a/git-export.c +++ b/git-export.c @@ -18,7 +18,7 @@ void show_commit(struct commit *commit) char *against = sha1_to_hex(commit->parents->item->object.sha1); printf("\n\n======== diff against %s ========\n", against); fflush(NULL); - sprintf(cmdline, "diff-tree -r -z %s %s | xargs -0 gitdiff-do %s %s", against, hex, against, hex); + sprintf(cmdline, "git diff -r %s:%s", against, hex); system(cmdline); } printf("======== end ========\n\n");