summaryrefslogtreecommitdiff
path: root/dir.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2007-06-11 09:39:50 -0400
committerJunio C Hamano <gitster@pobox.com>2007-06-13 00:41:52 -0700
commit2abd31b07864049f0352d86c0c90413123f40945 (patch)
tree87d435839010e38d599034c703fcdea9bb3046cd /dir.h
parent90ac368afd75c9a53c6d953a693380369a41f8db (diff)
downloadgit-2abd31b07864049f0352d86c0c90413123f40945.tar.gz
dir_struct: add collect_ignored option
When set, this option will cause read_directory to keep track of which entries were ignored. While this shouldn't effect functionality in most cases, it can make warning messages to the user much more useful. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.h')
-rw-r--r--dir.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/dir.h b/dir.h
index 172147fd3d..c94f3cb066 100644
--- a/dir.h
+++ b/dir.h
@@ -31,11 +31,14 @@ struct exclude_list {
struct dir_struct {
int nr, alloc;
+ int ignored_nr, ignored_alloc;
unsigned int show_ignored:1,
show_other_directories:1,
hide_empty_directories:1,
- no_gitlinks:1;
+ no_gitlinks:1,
+ collect_ignored:1;
struct dir_entry **entries;
+ struct dir_entry **ignored;
/* Exclude info */
const char *exclude_per_dir;