Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-11-01 20:51:01 +0400
committerRussell Belfer <rb@github.com>2013-11-01 21:20:51 +0400
commit8e5a8ef86f1d528472884f737612083abda86e17 (patch)
tree71b090fb4b7c91b8aa54b31fd458e768fec86625 /src/diff.c
parent4bf630b6baf342fa929a8f7e4e6643197b74216f (diff)
Convert git_index_read to have a "force" flag
This is a little more intuitive than the turned-around option that I originally wrote.
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c
index d1ff04b52..5c89b6e59 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -1189,7 +1189,7 @@ static int diff_load_index(git_index **index, git_repository *repo)
int error = git_repository_index__weakptr(index, repo);
/* reload the repository index when user did not pass one in */
- if (!error && git_index_read(*index, true) < 0)
+ if (!error && git_index_read(*index, false) < 0)
giterr_clear();
return error;