Skip to content

Commit

Permalink
[PATCH] Use diff-tree -p -r instead of "git diff" in git-export.
Browse files Browse the repository at this point in the history
Now diff-tree can produce patch itself, there is no reason to
depend on Cogito to show diff in the git-export output anymore.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Junio C Hamano authored and Linus Torvalds committed Apr 27, 2005
1 parent d15aa43 commit ce9be4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-export.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 -r %s:%s", against, hex);
sprintf(cmdline, "diff-tree -p -r %s %s", against, hex);
system(cmdline);
}
printf("======== end ========\n\n");
Expand Down

0 comments on commit ce9be4e

Please sign in to comment.