summaryrefslogtreecommitdiff
path: root/include/git2/errors.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-08-19 10:30:44 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2013-08-19 10:30:44 +0200
commit3d2768747548ec24b58ebdaa012a6b757e65f5a0 (patch)
treeac7653603379d3b1bc406becb247105967264221 /include/git2/errors.h
parent8f81ea45ca107c992313f76ee73316f16751e64e (diff)
downloadlibgit2-3d2768747548ec24b58ebdaa012a6b757e65f5a0.tar.gz
index: report when it's locked
Report the index being locked with its own error code in order to be able to differentiate, as a locked index is typically the result of a crashed process or concurrent access, both of which often require user intervention to fix.
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 2032a436a..0f0bddf07 100644
--- a/include/git2/errors.h
+++ b/include/git2/errors.h
@@ -32,6 +32,7 @@ typedef enum {
GIT_ENONFASTFORWARD = -11,
GIT_EINVALIDSPEC = -12,
GIT_EMERGECONFLICT = -13,
+ GIT_ELOCKED = -14,
GIT_PASSTHROUGH = -30,
GIT_ITEROVER = -31,