diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2018-07-01 15:13:50 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-11-05 15:53:34 +0000 |
| commit | 0f4b2f028ab3a70b76b9bd67f073747df7078559 (patch) | |
| tree | 89098564ae5bac37226d8504932b059e374d49ef /src/reader.h | |
| parent | 3b674660fe3f7c05359110007099ddf051caca7d (diff) | |
| download | libgit2-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/reader.h')
| -rw-r--r-- | src/reader.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/reader.h b/src/reader.h index 7bb60e144..e1d906807 100644 --- a/src/reader.h +++ b/src/reader.h @@ -9,6 +9,9 @@ #include "common.h" +/* Returned when the workdir does not match the index */ +#define GIT_READER_MISMATCH 1 + typedef struct git_reader git_reader; /* @@ -76,7 +79,8 @@ extern int git_reader_for_index( */ extern int git_reader_for_workdir( git_reader **out, - git_repository *repo); + git_repository *repo, + bool validate_index); /** * Read the given filename from the reader and populate the given buffer |
