summaryrefslogtreecommitdiff
path: root/src/filebuf.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-02-18 21:57:53 +0200
committerVicent Marti <tanoku@gmail.com>2011-03-03 20:23:49 +0200
commit86194b2433b993666bb58e7818f5b1f4133c9a43 (patch)
treec7165ed2c8d7f3bc291f49ef2d815ec29b24ac30 /src/filebuf.h
parent32054c24a26ab386fb56c7333fa723459e7e8dff (diff)
downloadlibgit2-86194b2433b993666bb58e7818f5b1f4133c9a43.tar.gz
Split packed from unpacked references
These two reference types are now stored separately to eventually allow the removal/renaming of loose references and rewriting of the refs packfile. Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/filebuf.h')
-rw-r--r--src/filebuf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/filebuf.h b/src/filebuf.h
index b2b5eaf4b..9db615fbd 100644
--- a/src/filebuf.h
+++ b/src/filebuf.h
@@ -12,6 +12,9 @@
#define GIT_FILEBUF_APPEND 0x2
#define GIT_FILEBUF_FORCE 0x4
+#define GIT_FILELOCK_EXTENSION ".lock\0"
+#define GIT_FILELOCK_EXTLENGTH 6
+
struct git_filebuf {
char *path_original;
char *path_lock;