summaryrefslogtreecommitdiff
path: root/src/apply.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-07-01 15:13:50 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2018-11-05 15:53:34 +0000
commit0f4b2f028ab3a70b76b9bd67f073747df7078559 (patch)
tree89098564ae5bac37226d8504932b059e374d49ef /src/apply.c
parent3b674660fe3f7c05359110007099ddf051caca7d (diff)
downloadlibgit2-0f4b2f028ab3a70b76b9bd67f073747df7078559.tar.gz
reader: optionally validate index matches workdir
When using a workdir reader, optionally validate that the index contents match the working directory contents.
Diffstat (limited to 'src/apply.c')
-rw-r--r--src/apply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apply.c b/src/apply.c
index 0810c021c..d4c7dd0db 100644
--- a/src/apply.c
+++ b/src/apply.c
@@ -661,7 +661,7 @@ int git_apply(
* in the index.
*/
if (opts.location == GIT_APPLY_LOCATION_WORKDIR)
- error = git_reader_for_workdir(&pre_reader, repo);
+ error = git_reader_for_workdir(&pre_reader, repo, false);
else
error = git_reader_for_index(&pre_reader, repo, NULL);