[PATCH] Additional functions for the objects database
[gitweb.git] / git-export.c
index cf40946cfa54eba981f8385ee289eccba1f69bec..6b5db93dbecf6251b69f873cd65b1f7e4e944460 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, "git diff -r %s:%s", against, hex);
                system(cmdline);
        }
        printf("======== end ========\n\n");