diff options
author | Pierre-Olivier Latour <pol@mac.com> | 2015-06-05 18:26:49 -0700 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2015-06-26 02:00:21 -0400 |
commit | c2e1b0581ada8453447bdeaacca92d972d83b1a8 (patch) | |
tree | a0fa85c94a4adad6623f67562a92d95d80295466 /src/diff.h | |
parent | 619423f238b2c782173d1cf83864cbd1219ab6a7 (diff) | |
download | libgit2-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.h | 1 |
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); |