62 Commits (11c6659d85d72273a4161c8779123147b52fbcb2)

Author SHA1 Message Date
Jeremiah Mahler ccdd4a0f3c cleanup duplicate name_compare() functions 11 years ago
Kirill Smelkov 7146e66f08 tree-walk: finally switch over tree descriptors to contain a pre-parsed entry 11 years ago
Andy Spencer e4ddb05720 tree_entry_interesting: match against all pathspecs 11 years ago
Nguyễn Thái Ngọc Duy 74b4f7f277 tree-walk.c: ignore trailing slash on submodule in tree_entry_interesting() 11 years ago
Nguyễn Thái Ngọc Duy ef79b1f870 Support pathspec magic :(exclude) and its short form :! 11 years ago
Stefan Beller a04f8196a8 traverse_trees(): clarify return value of the callback 12 years ago
Nguyễn Thái Ngọc Duy 93d9353716 parse_pathspec: accept :(icase)path syntax 12 years ago
Nguyễn Thái Ngọc Duy bd30c2e484 pathspec: support :(glob) syntax 12 years ago
Nguyễn Thái Ngọc Duy 5c6933d201 pathspec: support :(literal) syntax for noglob pathspec 12 years ago
Nguyễn Thái Ngọc Duy 8f4f8f4579 guard against new pathspec magic in pathspec matching code 12 years ago
Nguyễn Thái Ngọc Duy 6330a17199 parse_pathspec: add special flag for max_depth feature 12 years ago
Nguyễn Thái Ngọc Duy 64acde94ef move struct pathspec and related functions to pathspec.[ch] 12 years ago
Nguyễn Thái Ngọc Duy c904cd89e4 tree_entry_interesting: do basedir compare on wildcard patterns when possible 12 years ago
Nguyễn Thái Ngọc Duy 8c6abbcd27 pathspec: apply "*.c" optimization from exclude 12 years ago
Nguyễn Thái Ngọc Duy 5d74762d87 pathspec: do exact comparison on the leading non-wildcard part 12 years ago
Nguyễn Thái Ngọc Duy 170260ae90 pathspec: save the non-wildcard length part 12 years ago
Nguyễn Thái Ngọc Duy c3a47ca9a7 tree-walk: use enum interesting instead of integer 12 years ago
Nguyễn Thái Ngọc Duy 8c69c1f92e Document limited recursion pathspec matching with wildcards 13 years ago
Nguyễn Thái Ngọc Duy d688cf07b1 tree_entry_interesting(): give meaningful names to return values 13 years ago
Nguyễn Thái Ngọc Duy 9c6bebd142 tree_entry_interesting: make use of local pointer "item" 13 years ago
Junio C Hamano 5fb8c05f2e get_tree_entry(): do not call find_tree_entry() on an empty tree 13 years ago
Nguyễn Thái Ngọc Duy 0de1633783 tree-walk.c: do not leak internal structure in tree_entry_len() 13 years ago
Ramsay Jones 27c0f76884 Fix some "variable might be used uninitialized" warnings 13 years ago
Dan McGee 1b74092373 tree-walk: micro-optimization in tree_entry_interesting 13 years ago
Dan McGee 6de96915c0 tree-walk: drop unused parameter from match_dir_prefix 13 years ago
Junio C Hamano 2842c0f914 traverse_trees(): allow pruning with pathspec 14 years ago
Junio C Hamano 33e0f62ba9 pathspec: rename per-item field has_wildcard to use_wildcard 14 years ago
Nguyễn Thái Ngọc Duy 1376e50723 grep: drop pathspec_matches() in favor of tree_entry_interesting() 14 years ago
Nguyễn Thái Ngọc Duy f1a2ddbbc2 tree_entry_interesting(): optimize wildcard matching when base is matched 14 years ago
Nguyễn Thái Ngọc Duy d38f28093e tree_entry_interesting(): support wildcard matching 14 years ago
Nguyễn Thái Ngọc Duy 86e4ca69e3 tree_entry_interesting(): fix depth limit with overlapping pathspecs 14 years ago
Nguyễn Thái Ngọc Duy bc96cc87db tree_entry_interesting(): support depth limit 14 years ago
Nguyễn Thái Ngọc Duy 58c4d66619 tree_entry_interesting(): refactor into separate smaller functions 14 years ago
Nguyễn Thái Ngọc Duy 48932677d6 diff-tree: convert base+baselen to writable strbuf 14 years ago
Nguyễn Thái Ngọc Duy 2c389fc8ec Move tree_entry_interesting() to tree-walk.c and export it 14 years ago
Matthieu Moy e6c111b4c0 unpack_trees: group error messages by type 15 years ago
René Scharfe ef0065034a fix minor memory leak in get_tree_entry() 15 years ago
Junio C Hamano 1ee26571e9 traverse_trees(): handle D/F conflict case sanely 15 years ago
Linus Torvalds bcbe5a515e Fix tree-walking compare_entry() in the presense of --prefix 17 years ago
Linus Torvalds 91e4f03604 Make 'traverse_trees()' traverse conflicting DF entries in parallel 17 years ago
Linus Torvalds 5803c6f8a2 Add return value to 'traverse_tree()' callback 17 years ago
Linus Torvalds 40d934df72 Make 'traverse_tree()' use linked structure rather than 'const char *base' 17 years ago
Martin Koegler 64cc1c0909 tree-walk: don't parse incorrect entries 17 years ago
Junio C Hamano a6080a0a44 War on whitespace 18 years ago
Linus Torvalds 4651ece854 Switch over tree descriptors to contain a pre-parsed entry 18 years ago
Linus Torvalds 6fda5e5180 Initialize tree descriptors with a helper function rather than by hand. 18 years ago
Linus Torvalds a8c40471ab Remove "pathlen" from "struct name_entry" 18 years ago
Linus Torvalds 304de2d2d6 Avoid unnecessary strlen() calls 18 years ago
Jeff King d93b7d1c30 get_tree_entry: map blank requested entry to tree root 18 years ago
René Scharfe 4fe2cc0c89 Remove shadowing variable from traverse_trees() 18 years ago