summaryrefslogtreecommitdiff
path: root/src/diff.h
diff options
context:
space:
mode:
authorPierre-Olivier Latour <pol@mac.com>2015-06-05 18:26:49 -0700
committerEdward Thomson <ethomson@edwardthomson.com>2015-06-26 02:00:21 -0400
commitc2e1b0581ada8453447bdeaacca92d972d83b1a8 (patch)
treea0fa85c94a4adad6623f67562a92d95d80295466 /src/diff.h
parent619423f238b2c782173d1cf83864cbd1219ab6a7 (diff)
downloadlibgit2-c2e1b0581ada8453447bdeaacca92d972d83b1a8.tar.gz
Only write index if updated when passing GIT_DIFF_UPDATE_INDEX
When diffing the index with the workdir and GIT_DIFF_UPDATE_INDEX has been passed, the previous implementation was always writing the index to disk even if it wasn't modified.
Diffstat (limited to 'src/diff.h')
-rw-r--r--src/diff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/diff.h b/src/diff.h
index a202a086c..2dfc2c615 100644
--- a/src/diff.h
+++ b/src/diff.h
@@ -64,6 +64,7 @@ struct git_diff {
git_iterator_type_t new_src;
uint32_t diffcaps;
git_diff_perfdata perf;
+ bool index_updated;
int (*strcomp)(const char *, const char *);
int (*strncomp)(const char *, const char *, size_t);