Fix up git-export to use the lower-level interfaces for diff generation.
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 21 Apr 2005 01:48:27 +0000 (18:48 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 21 Apr 2005 01:48:27 +0000 (18:48 -0700)
The high-level helpers seem to have forgotten what to do with sha1
names.

git-export.c

index cf40946..e817c75 100644 (file)
@@ -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, "git diff %s %s", against, hex);
+               sprintf(cmdline, "diff-tree -r -z %s %s | xargs -0 gitdiff-do %s %s", against, hex, against, hex);
                system(cmdline);
        }
        printf("======== end ========\n\n");