summaryrefslogtreecommitdiff
path: root/dir.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-12-25 11:11:34 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-12-25 11:29:08 (GMT)
commit4888c534099012d71d24051deb5b14319747bd1a (patch)
tree49dc638e23b71cc2609a797bfa7ca9f0ab72d072 /dir.h
parent08d22488a65fde7d570bd4ea57626f5352b9b064 (diff)
downloadgit-4888c534099012d71d24051deb5b14319747bd1a.zip
git-4888c534099012d71d24051deb5b14319747bd1a.tar.gz
git-4888c534099012d71d24051deb5b14319747bd1a.tar.bz2
read_directory: show_both option.
This teaches the internal read_directory() routine to return both interesting and ignored pathnames. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'dir.h')
-rw-r--r--dir.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/dir.h b/dir.h
index c919727..08c6345 100644
--- a/dir.h
+++ b/dir.h
@@ -13,7 +13,8 @@
struct dir_entry {
- int len;
+ unsigned ignored_entry : 1;
+ unsigned int len : 15;
char name[FLEX_ARRAY]; /* more */
};
@@ -29,7 +30,8 @@ struct exclude_list {
struct dir_struct {
int nr, alloc;
- unsigned int show_ignored:1,
+ unsigned int show_both: 1,
+ show_ignored:1,
show_other_directories:1,
hide_empty_directories:1;
struct dir_entry **entries;