Fix up git-export to use the lower-level interfaces for diff generation.

The high-level helpers seem to have forgotten what to do with sha1
names.
This commit is contained in:
Linus Torvalds 2005-04-20 18:48:27 -07:00
parent b12ec373b8
commit 32347c3752

View 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");