summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorPatryk Obara <patryk.obara@gmail.com>2017-08-20 20:09:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-08-21 04:51:38 (GMT)
commit98e019b067ac8a34e06f9c412f14a080c7c4dc0d (patch)
tree993e29b9bcffe7603f5b7d377af86aefbb7f1785 /diff.c
parentbebfecb94c5c71091a07ebbd300740990d3266c7 (diff)
downloadgit-98e019b067ac8a34e06f9c412f14a080c7c4dc0d.zip
git-98e019b067ac8a34e06f9c412f14a080c7c4dc0d.tar.gz
git-98e019b067ac8a34e06f9c412f14a080c7c4dc0d.tar.bz2
sha1_file: convert index_path to struct object_id
Convert all remaining callers as well. Signed-off-by: Patryk Obara <patryk.obara@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 9c38258..65f8d13 100644
--- a/diff.c
+++ b/diff.c
@@ -3246,7 +3246,7 @@ static void diff_fill_oid_info(struct diff_filespec *one)
}
if (lstat(one->path, &st) < 0)
die_errno("stat '%s'", one->path);
- if (index_path(one->oid.hash, one->path, &st, 0))
+ if (index_path(&one->oid, one->path, &st, 0))
die("cannot hash %s", one->path);
}
}