diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2018-06-25 21:24:49 +0900 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-11-04 09:21:48 +0000 |
| commit | c3077ea0fa5ea8e0b27b1b47e95032da0591d861 (patch) | |
| tree | 901b1d5ddd1476df31f4d56793ae163ab10a0a7f /include/git2/errors.h | |
| parent | 973bf0c804c1431827fea9fde14ca4b3ca2fe995 (diff) | |
| download | libgit2-c3077ea0fa5ea8e0b27b1b47e95032da0591d861.tar.gz | |
apply: return a specific exit code on failure
Return `GIT_EAPPLYFAIL` on patch application failure so that users can
determine that patch application failed due to a malformed/conflicting
patch by looking at the error code.
Diffstat (limited to 'include/git2/errors.h')
| -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 c2a01de76..b0ce45fe5 100644 --- a/include/git2/errors.h +++ b/include/git2/errors.h @@ -57,6 +57,7 @@ typedef enum { GIT_RETRY = -32, /**< Internal only */ GIT_EMISMATCH = -33, /**< Hashsum mismatch in object */ GIT_EINDEXDIRTY = -34, /**< Unsaved changes in the index would be overwritten */ + GIT_EAPPLYFAIL = -35, /**< Patch application failed */ } git_error_code; /** |
