diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2018-06-22 19:07:54 +0900 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-06-29 14:54:28 +0100 |
| commit | 787768c2d70dfcd1c9ebc1854b5d0f67d2e6d4d9 (patch) | |
| tree | 5389dc186d1128abe049f5fb83491b50e9e51372 /include | |
| parent | 5e26391a2579062bdf5d6f0efe6b03f78d28f825 (diff) | |
| download | libgit2-787768c2d70dfcd1c9ebc1854b5d0f67d2e6d4d9.tar.gz | |
index: return a unique error code on dirty index
When the index is dirty, return GIT_EINDEXDIRTY so that consumers can
identify the exact problem programatically.
Diffstat (limited to 'include')
| -rw-r--r-- | include/git2/errors.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/git2/errors.h b/include/git2/errors.h index 6f5580253..00fbed157 100644 --- a/include/git2/errors.h +++ b/include/git2/errors.h @@ -55,6 +55,7 @@ typedef enum { GIT_ITEROVER = -31, /**< Signals end of iteration with iterator */ GIT_RETRY = -32, /**< Internal only */ GIT_EMISMATCH = -33, /**< Hashsum mismatch in object */ + GIT_EINDEXDIRTY = -34, /**< Unsaved changes in the index would be overwritten */ } git_error_code; /** |
