projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b12ec37
)
Fix up git-export to use the lower-level interfaces for diff generation.
author
Linus Torvalds
<torvalds@ppc970.osdl.org>
Thu, 21 Apr 2005 01:48:27 +0000
(18:48 -0700)
committer
Linus 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
patch
|
blob
|
history
diff --git
a/git-export.c
b/git-export.c
index
cf40946
..
e817c75
100644
(file)
--- 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, "
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");