diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-06-28 15:19:57 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-06-28 15:19:57 -0700 |
commit | 653111f99c6bfa3bb5effd61c138bf925f19fbdb (patch) | |
tree | 6740e5a2a55d114144461b8ccdeaf04e73548380 /dir.h | |
parent | 6f20ca3e092343ffffc22438aae25c013539d47e (diff) | |
parent | f9f6e2ce26e25661245a6faaf0b254524c1bfbd4 (diff) | |
download | git-653111f99c6bfa3bb5effd61c138bf925f19fbdb.tar.gz |
Merge branch 'nd/exclude-workaround-top-heavy'
Attempt to optimize matching with an exclude pattern with a deep
directory hierarchy by taking the part that specifies leading path
without wildcard literally.
Diffstat (limited to 'dir.h')
-rw-r--r-- | dir.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -9,7 +9,6 @@ struct dir_entry { }; #define EXC_FLAG_NODIR 1 -#define EXC_FLAG_NOWILDCARD 2 #define EXC_FLAG_ENDSWITH 4 #define EXC_FLAG_MUSTBEDIR 8 @@ -19,6 +18,7 @@ struct exclude_list { struct exclude { const char *pattern; int patternlen; + int nowildcardlen; const char *base; int baselen; int to_exclude; |