aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-07-21 01:24:17 -0700
committerJunio C Hamano <gitster@pobox.com>2008-07-25 21:14:21 -0700
commit041aee31be378b3b38e3a0913b29970a7f78873b (patch)
tree88a21edbf55413666e1835e7e0e57b327efe011b /cache.h
parentb0320eaf6a25fbc4adf35d611c27006e6d853aa8 (diff)
downloadgit-041aee31be378b3b38e3a0913b29970a7f78873b.tar.gz
git-041aee31be378b3b38e3a0913b29970a7f78873b.tar.xz
builtin-add.c: restructure the code for maintainability
A private function add_files_to_cache() in builtin-add.c was borrowed by checkout and commit re-implementors without getting properly refactored to more library-ish place. This does the refactoring. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 38985aa63..6f374add8 100644
--- a/cache.h
+++ b/cache.h
@@ -375,6 +375,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);