aboutsummaryrefslogtreecommitdiff
path: root/dir.h
diff options
context:
space:
mode:
authorJens Lehmann <Jens.Lehmann@web.de>2010-07-10 00:18:38 +0200
committerJunio C Hamano <gitster@pobox.com>2010-07-12 15:13:54 -0700
commit108da0db1277fc2f4820d0a47c02b2c63111f7a5 (patch)
tree1684b8bab6530364e446aaa2a437d19521f04e34 /dir.h
parent637ab29b86533c7ce65a615fd445d163a2c57dc9 (diff)
downloadgit-108da0db1277fc2f4820d0a47c02b2c63111f7a5.tar.gz
git-108da0db1277fc2f4820d0a47c02b2c63111f7a5.tar.xz
git add: Add the "--ignore-missing" option for the dry run
Sometimes it is useful to know if a file or directory will be ignored before it is added to the work tree. An example is "git submodule add", where it would be really nice to be able to fail with an appropriate error message before the submodule is cloned and checked out. Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.h')
-rw-r--r--dir.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dir.h b/dir.h
index 3bead5f0e..278d84cdf 100644
--- a/dir.h
+++ b/dir.h
@@ -72,6 +72,7 @@ extern int read_directory(struct dir_struct *, const char *path, int len, const
extern int excluded_from_list(const char *pathname, int pathlen, const char *basename,
int *dtype, struct exclude_list *el);
extern int excluded(struct dir_struct *, const char *, int *);
+struct dir_entry *dir_add_ignored(struct dir_struct *dir, const char *pathname, int len);
extern int add_excludes_from_file_to_list(const char *fname, const char *base, int baselen,
char **buf_p, struct exclude_list *which, int check_index);
extern void add_excludes_from_file(struct dir_struct *, const char *fname);