summaryrefslogtreecommitdiff
path: root/src/git/common.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-11-14 22:11:46 +0200
committerVicent Marti <tanoku@gmail.com>2010-11-16 02:59:28 +0200
commitc3a20d5cab7d17cf55e769c39a3d50882e3d341d (patch)
treeb00021319f63036e8a08c2b99d70e409adf111ef /src/git/common.h
parent7a3924fc38b63313e84c6339d2fd56084f5aeea6 (diff)
downloadlibgit2-c3a20d5cab7d17cf55e769c39a3d50882e3d341d.tar.gz
Add support for 'index add'
Actually add files to the index by creating their corresponding blob and storing it on the repository, then getting the hash and updating the index file. Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/git/common.h')
-rw-r--r--src/git/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/git/common.h b/src/git/common.h
index 82f08ac5d..cbc77e991 100644
--- a/src/git/common.h
+++ b/src/git/common.h
@@ -105,6 +105,9 @@
/** The queried object is currently busy */
#define GIT_EBUSY (GIT_ERROR - 13)
+/** The index file is not backed up by an existing repository */
+#define GIT_EBAREINDEX (GIT_ERROR -14)
+
GIT_BEGIN_DECL