summaryrefslogtreecommitdiff
path: root/src/repository.h
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2011-02-26 13:56:16 +0100
committerVicent Marti <tanoku@gmail.com>2011-03-03 20:23:50 +0200
commitd2d6912e6ce1ab12d2bedebb5514c888aa7d585f (patch)
tree7e3c7e30b41463a02c8008bbe563e3b170e74cde /src/repository.h
parent3b3a10176e6f6c239abad4f835883ee903067180 (diff)
downloadlibgit2-d2d6912e6ce1ab12d2bedebb5514c888aa7d585f.tar.gz
Refactored the opening and the initialization of a repository.
Diffstat (limited to 'src/repository.h')
-rw-r--r--src/repository.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/repository.h b/src/repository.h
index 5bf041140..c8e4186b3 100644
--- a/src/repository.h
+++ b/src/repository.h
@@ -10,6 +10,11 @@
#include "index.h"
#include "refs.h"
+#define DOT_GIT ".git"
+#define GIT_DIR DOT_GIT "/"
+#define GIT_OBJECTS_DIR "objects/"
+#define GIT_INDEX_FILE "index"
+
typedef struct {
git_rawobj raw;
void *write_ptr;