diff options
| author | Junio C Hamano <gitster@pobox.com> | 2009-03-20 14:30:51 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2009-03-20 14:30:51 -0700 |
| commit | de2e3b04cd70a22016561547530f980c66807641 (patch) | |
| tree | fc842c0e91cff12f3c84f3da0f85042d937ec19e /dir.h | |
| parent | 5645b021177d000bc8b2971aa73b82b62413ee20 (diff) | |
| parent | 2fb6d6d6dd1033bfe82d6d327ac270f9cf8943cd (diff) | |
| download | git-de2e3b04cd70a22016561547530f980c66807641.tar.xz | |
Merge branch 'mv/parseopt-ls-files'
* mv/parseopt-ls-files:
ls-files: fix broken --no-empty-directory
t3000: use test_cmp instead of diff
parse-opt: migrate builtin-ls-files.
Turn the flags in struct dir_struct into a single variable
Conflicts:
builtin-ls-files.c
t/t3000-ls-files-others.sh
Diffstat (limited to 'dir.h')
| -rw-r--r-- | dir.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -34,11 +34,13 @@ struct exclude_stack { 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, - collect_ignored:1; + enum { + DIR_SHOW_IGNORED = 1<<0, + DIR_SHOW_OTHER_DIRECTORIES = 1<<1, + DIR_HIDE_EMPTY_DIRECTORIES = 1<<2, + DIR_NO_GITLINKS = 1<<3, + DIR_COLLECT_IGNORED = 1<<4 + } flags; struct dir_entry **entries; struct dir_entry **ignored; |
