X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=builtin-diff.c;h=27451d56134e08364c33c26d5074693dd4437d31;hb=1a82e79315ed633f6b0b1fc4076054950c5380d3;hp=b0c9cade02fef6d71bf45dd2fceb6d573778195e;hpb=94cdb382583e7c87d949fb22754d795a1b956377;p=git.git diff --git a/builtin-diff.c b/builtin-diff.c index b0c9cade..27451d56 100644 --- a/builtin-diff.c +++ b/builtin-diff.c @@ -122,7 +122,7 @@ static int builtin_diff_b_f(struct rev_info *revs, stuff_change(&revs->diffopt, canon_mode(st.st_mode), canon_mode(st.st_mode), blob[0].sha1, null_sha1, - blob[0].name, path); + path, path); diffcore_std(&revs->diffopt); diff_flush(&revs->diffopt); return 0; @@ -233,7 +233,7 @@ static int builtin_diff_combined(struct rev_info *revs, return 0; } -static void add_head(struct rev_info *revs) +void add_head(struct rev_info *revs) { unsigned char sha1[20]; struct object *obj;