summaryrefslogtreecommitdiff
path: root/dir.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2007-06-11 13:39:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-06-13 07:41:52 (GMT)
commit2abd31b07864049f0352d86c0c90413123f40945 (patch)
tree87d435839010e38d599034c703fcdea9bb3046cd /dir.h
parent90ac368afd75c9a53c6d953a693380369a41f8db (diff)
downloadgit-2abd31b07864049f0352d86c0c90413123f40945.zip
git-2abd31b07864049f0352d86c0c90413123f40945.tar.gz
git-2abd31b07864049f0352d86c0c90413123f40945.tar.bz2
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 172147f..c94f3cb 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;