cache.h: define constants LOCK_SUFFIX and LOCK_SUFFIX_LEN
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index 0a76d023e4cd5a835a6c8c41002c575c53c276fd..24891a81d6be0b41dd0a9526fe786d2b2a80c7d1 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -570,6 +570,10 @@ extern void fill_stat_cache_info(struct cache_entry *ce, struct stat *st);
 #define REFRESH_IN_PORCELAIN   0x0020  /* user friendly output, not "needs update" */
 extern int refresh_index(struct index_state *, unsigned int flags, const struct pathspec *pathspec, char *seen, const char *header_msg);
 
+/* String appended to a filename to derive the lockfile name: */
+#define LOCK_SUFFIX ".lock"
+#define LOCK_SUFFIX_LEN 5
+
 struct lock_file {
        struct lock_file *next;
        int fd;