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:
parent
b12ec373b8
commit
32347c3752
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user