diff options
author | Russell Belfer <rb@github.com> | 2013-11-01 09:51:01 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-11-01 10:20:51 -0700 |
commit | 8e5a8ef86f1d528472884f737612083abda86e17 (patch) | |
tree | 71b090fb4b7c91b8aa54b31fd458e768fec86625 /src/status.c | |
parent | 4bf630b6baf342fa929a8f7e4e6643197b74216f (diff) | |
download | libgit2-8e5a8ef86f1d528472884f737612083abda86e17.tar.gz |
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/status.c')
-rw-r--r-- | src/status.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/status.c b/src/status.c index 74bccf7a1..07fdcb5c3 100644 --- a/src/status.c +++ b/src/status.c @@ -259,7 +259,7 @@ int git_status_list_new( /* refresh index from disk unless prevented */ if ((flags & GIT_STATUS_OPT_NO_REFRESH) == 0 && - git_index_read(index, true) < 0) + git_index_read(index, false) < 0) giterr_clear(); status = git_status_list_alloc(index); |