summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorLibravatar Jacob Keller <jacob.keller@gmail.com>2016-08-31 16:27:23 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-08-31 18:07:10 -0700
commit602a283afb225ea094f4582e02e94cfd7f5cabf0 (patch)
tree1d85b1ee06d04791e238c036c0e222c9081e18a1 /diff.c
parentallow do_submodule_path to work even if submodule isn't checked out (diff)
downloadtgif-602a283afb225ea094f4582e02e94cfd7f5cabf0.tar.xz
submodule: convert show_submodule_summary to use struct object_id *
Since we're going to be changing this function in a future patch, lets go ahead and convert this to use object_id now. Signed-off-by: Jacob Keller <jacob.keller@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index 1380bbe250..a74e6e06df 100644
--- a/diff.c
+++ b/diff.c
@@ -2307,7 +2307,7 @@ static void builtin_diff(const char *name_a,
const char *add = diff_get_color_opt(o, DIFF_FILE_NEW);
show_submodule_summary(o->file, one->path ? one->path : two->path,
line_prefix,
- one->oid.hash, two->oid.hash,
+ &one->oid, &two->oid,
two->dirty_submodule,
meta, del, add, reset);
return;