summaryrefslogtreecommitdiff
path: root/include/git2/errors.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-01-29 14:07:18 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2014-02-05 12:07:56 +0100
commitfc4728e3e2a4094b202a63319232f25adbd55fed (patch)
treead320fc0824b3e924c529da0d9ef461b8be90672 /include/git2/errors.h
parent5d96fe8828505db852671175d5895dfd275f3d06 (diff)
downloadlibgit2-fc4728e3e2a4094b202a63319232f25adbd55fed.tar.gz
refs: return GIT_EMODIFIED if the ref target moved
In case we loose the race to update the reference, return GIT_EMODIFIED to let the user distinguish it from other types of errors.
Diffstat (limited to 'include/git2/errors.h')
-rw-r--r--include/git2/errors.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/git2/errors.h b/include/git2/errors.h
index 973d56003..bcf2f80ab 100644
--- a/include/git2/errors.h
+++ b/include/git2/errors.h
@@ -40,6 +40,7 @@ typedef enum {
GIT_EINVALIDSPEC = -12, /*< Name/ref spec was not in a valid format */
GIT_EMERGECONFLICT = -13, /*< Merge conflicts prevented operation */
GIT_ELOCKED = -14, /*< Lock file prevented operation */
+ GIT_EMODIFIED = -15, /*< Reference value does not match expected */
GIT_PASSTHROUGH = -30, /*< Internal only */
GIT_ITEROVER = -31, /*< Signals end of iteration with iterator */