]> asedeno.scripts.mit.edu Git - git.git/blobdiff - cache.h
receive-pack: make it a builtin
[git.git] / cache.h
diff --git a/cache.h b/cache.h
index ab9f97efc6be1e40a59e03463aa921d339420f6c..ce1f63090dd86b12898fc4083444d5a38ca0cb60 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -379,6 +379,7 @@ extern int remove_file_from_index(struct index_state *, const char *path);
 #define ADD_CACHE_VERBOSE 1
 #define ADD_CACHE_PRETEND 2
 #define ADD_CACHE_IGNORE_ERRORS        4
+#define ADD_CACHE_IGNORE_REMOVAL 8
 extern int add_to_index(struct index_state *, const char *path, struct stat *, int flags);
 extern int add_file_to_index(struct index_state *, const char *path, int flags);
 extern struct cache_entry *make_cache_entry(unsigned int mode, const unsigned char *sha1, const char *path, int stage, int refresh);
@@ -532,6 +533,7 @@ static inline int is_absolute_path(const char *path)
 {
        return path[0] == '/' || has_dos_drive_prefix(path);
 }
+int is_directory(const char *);
 const char *make_absolute_path(const char *path);
 const char *make_nonrelative_path(const char *path);
 const char *make_relative_path(const char *abs, const char *base);