diff options
author | Alex Riesen <raa.lkml@gmail.com> | 2008-05-12 19:58:10 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-12 20:54:52 -0700 |
commit | 7ae02a30e817eda16ea362c6304b6ae28c3a7644 (patch) | |
tree | 7c9f5faeebe018996079425e9c898f41457ea24c /cache.h | |
parent | 960b8ad1b1824b1b82c2b09a000c2119f97633a0 (diff) | |
download | git-7ae02a30e817eda16ea362c6304b6ae28c3a7644.tar.gz |
Extend interface of add_files_to_cache to allow ignore indexing errors
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -781,7 +781,13 @@ extern int convert_to_git(const char *path, const char *src, size_t len, extern int convert_to_working_tree(const char *path, const char *src, size_t len, struct strbuf *dst); /* add */ -void add_files_to_cache(int verbose, const char *prefix, const char **pathspec); +#define ADD_FILES_VERBOSE 01 +#define ADD_FILES_IGNORE_ERRORS 02 +/* + * return 0 if success, 1 - if addition of a file failed and + * ADD_FILES_IGNORE_ERRORS was specified in flags + */ +int add_files_to_cache(const char *prefix, const char **pathspec, int flags); /* diff.c */ extern int diff_auto_refresh_index; |