summaryrefslogtreecommitdiff
path: root/src/checkout.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-04-28 14:04:29 -0700
committerRussell Belfer <rb@github.com>2014-05-02 09:21:32 -0700
commit240f4af321612a0fe4cf01aed75a8cb44173feb8 (patch)
treed92455ee46456a2de161b1128b0555e9a6e43401 /src/checkout.c
parent6a1ca96e4193f79c16c6a71dd8b5d576acf22e91 (diff)
downloadlibgit2-240f4af321612a0fe4cf01aed75a8cb44173feb8.tar.gz
Add build option for diff internal statistics
Diffstat (limited to 'src/checkout.c')
-rw-r--r--src/checkout.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/checkout.c b/src/checkout.c
index bc976b854..93d6bc9c5 100644
--- a/src/checkout.c
+++ b/src/checkout.c
@@ -185,8 +185,7 @@ static bool checkout_is_workdir_modified(
return true;
if (git_diff__oid_for_file(
- data->repo, wditem->path, wditem->mode,
- wditem->file_size, &oid) < 0)
+ &oid, data->diff, wditem->path, wditem->mode, wditem->file_size) < 0)
return false;
return (git_oid__cmp(&baseitem->id, &oid) != 0);