diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-07-21 01:24:17 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-25 21:14:21 -0700 |
commit | 041aee31be378b3b38e3a0913b29970a7f78873b (patch) | |
tree | 88a21edbf55413666e1835e7e0e57b327efe011b /cache.h | |
parent | b0320eaf6a25fbc4adf35d611c27006e6d853aa8 (diff) | |
download | git-041aee31be378b3b38e3a0913b29970a7f78873b.tar.gz |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |