diff --git a/builtin-diff.c b/builtin-diff.c
index 636edbf2a79f4e757866a08b221374e91e3dfe3b..71742aa10b3b8e2621eecd4be929946b0a308deb 100644 (file)
--- a/builtin-diff.c
+++ b/builtin-diff.c
if (opt->reverse_diff) {
unsigned tmp;
- const
- const unsigned char *tmp_u;
+ const unsigned char *tmp_u;
const char *tmp_c;
tmp = old_mode; old_mode = new_mode; new_mode = tmp;
tmp_u = old_sha1; old_sha1 = new_sha1; new_sha1 = tmp_u;
return 0;
}
-static void add_head(struct rev_info *revs)
+void add_head(struct rev_info *revs)
{
unsigned char sha1[20];
struct object *obj;