aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-05-21 14:16:46 -0700
committerJunio C Hamano <gitster@pobox.com>2008-05-21 14:16:46 -0700
commit9d880582ee0e63b3865350e90d3576fec55aed20 (patch)
tree09edc39b6918dce863c0e88e4c5508a4f957454b /cache.h
parent8fe114a6e1d606eb806b3f87b17fc22f106af7b7 (diff)
parentdad25e4a7c34a3ece1355f84b8c4661438754531 (diff)
downloadgit-9d880582ee0e63b3865350e90d3576fec55aed20.tar.gz
git-9d880582ee0e63b3865350e90d3576fec55aed20.tar.xz
Merge branch 'ar/add-unreadable'
* ar/add-unreadable: Add a config option to ignore errors for git-add Add a test for git-add --ignore-errors Add --ignore-errors to git-add to allow it to skip files with read errors Extend interface of add_files_to_cache to allow ignore indexing errors Make the exit code of add_file_to_index actually useful
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index 093f04cec..0f89f1569 100644
--- a/cache.h
+++ b/cache.h
@@ -782,7 +782,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;