aboutsummaryrefslogtreecommitdiffstats
path: root/tree-walk.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-28Merge branch 'eb/hash-transition'Junio C Hamano1-34/+24
2024-02-23fill_tree_descriptor(): mark error message for translationJohannes Schindelin1-1/+1
2023-10-02tree-walk: init_tree_desc take an oid to get the hash algorithmEric W. Biederman1-15/+21
2023-10-02object: factor out parse_mode out of fast-import and tree-walk into in object.hEric W. Biederman1-19/+3
2023-08-31traverse_trees(): respect max_allowed_tree_depthJeff King1-0/+4
2023-08-31tree-walk: rename "error" variableJeff King1-3/+3
2023-08-31tree-walk: reduce stack size for recursive functionsJeff King1-4/+6
2023-08-02Merge branch 'jc/tree-walk-drop-base-offset'Junio C Hamano1-18/+18
2023-07-07tree-walk: drop unused base_offset from do_match()Junio C Hamano1-17/+16
2023-07-07tree-walk: lose base_offset that is never used in tree_entry_interestingJunio C Hamano1-2/+3
2023-07-05git-compat-util: move alloc macros to git-compat-util.hCalvin Wan1-1/+0
2023-06-21object-store-ll.h: split this header out of object-store.hElijah Newren1-1/+1
2023-04-24treewide: remove cache.h inclusion due to previous changesElijah Newren1-1/+1
2023-04-11object-file.h: move declarations for object-file.c functions from cache.hElijah Newren1-0/+1
2023-04-11treewide: be explicit about dependence on trace.h & trace2.hElijah Newren1-0/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2023-02-23cache.h: remove dependence on hex.h; make other files include it explicitlyElijah Newren1-0/+1
2023-02-23alloc.h: move ALLOC_GROW() functions from cache.hElijah Newren1-0/+1
2022-08-10tree-walk: add a mechanism for getting non-canonicalized modesJeff King1-5/+9
2022-02-25object-file API: pass an enum to read_object_with_reference()Ævar Arnfjörð Bjarmason1-3/+3
2021-04-27Always use oidread to read into struct object_idbrian m. carlson1-1/+1
2021-01-04tree-walk: report recursion countsDerrick Stolee1-0/+33
2020-06-08tree-walk.c: don't match submodule entries for 'submod/anything'SZEDER Gábor1-1/+8
2020-02-04tree-walk.c: break circular dependency with unpack-treesJeff King1-2/+1
2020-01-30traverse_trees(): use stack array for name entriesJeff King1-5/+8
2020-01-06Merge branch 'js/mingw-loosen-overstrict-tree-entry-checks'Junio C Hamano1-6/+0
2020-01-02mingw: only test index entries for backslashes, not tree entriesJohannes Schindelin1-6/+0
2019-12-09Sync with Git 2.24.1Junio C Hamano1-0/+6
2019-12-06Merge branch 'jk/lore-is-the-archive'Junio C Hamano1-1/+1
2019-12-06Sync with 2.23.1Johannes Schindelin1-0/+6
2019-12-06Sync with 2.22.2Johannes Schindelin1-0/+6
2019-12-06Sync with 2.21.1Johannes Schindelin1-0/+6
2019-12-06Sync with 2.20.2Johannes Schindelin1-0/+6
2019-12-06Sync with 2.19.3Johannes Schindelin1-0/+6
2019-12-06Sync with 2.18.2Johannes Schindelin1-0/+6
2019-12-06Sync with 2.17.3Johannes Schindelin1-0/+6
2019-12-06Sync with 2.15.4Johannes Schindelin1-0/+6
2019-12-06Sync with 2.14.6Johannes Schindelin1-0/+6
2019-12-04mingw: disallow backslash characters in tree objects' file namesJohannes Schindelin1-0/+6
2019-11-30doc: replace public-inbox links with lore.kernel.orgJeff King1-1/+1
2019-08-22Merge branch 'jk/tree-walk-overflow'Junio C Hamano1-22/+42
2019-08-01tree-walk: harden make_traverse_path() length computationsJeff King1-8/+20
2019-08-01tree-walk: add a strbuf wrapper for make_traverse_path()Jeff King1-6/+15
2019-08-01tree-walk: use size_t consistentlyJeff King1-2/+2
2019-07-31tree-walk: drop oid from traverse_infoJeff King1-11/+12
2019-07-31setup_traverse_info(): stop copying oidJeff King1-3/+1
2019-06-27tree-walk.c: remove the_repo from get_tree_entry_follow_symlinks()Nguyễn Thái Ngọc Duy1-4/+8
2019-06-27tree-walk.c: remove the_repo from get_tree_entry()Nguyễn Thái Ngọc Duy1-6/+12
2019-06-27tree-walk.c: remove the_repo from fill_tree_descriptor()Nguyễn Thái Ngọc Duy1-2/+4
2019-06-27sha1-file.c: remove the_repo from read_object_with_reference()Nguyễn Thái Ngọc Duy1-3/+4
2019-04-08Use 'unsigned short' for mode, like diff_filespec doesElijah Newren1-3/+3
2019-02-06Merge branch 'dt/cat-file-batch-ambiguous'Junio C Hamano1-2/+2
2019-01-29Merge branch 'bc/tree-walk-oid'Junio C Hamano1-9/+12
2019-01-18Do not print 'dangling' for cat-file in case of ambiguityDavid Turner1-2/+2
2019-01-15tree-walk: store object_id in a separate memberbrian m. carlson1-4/+7
2019-01-15tree-walk: copy object ID before usebrian m. carlson1-5/+5
2018-11-19tree-walk: support :(attr) matchingNguyễn Thái Ngọc Duy1-14/+53
2018-11-19tree-walk.c: make tree_entry_interesting() take an indexNguyễn Thái Ngọc Duy1-8/+14
2018-11-13Merge branch 'nd/tree-walk-path-exclusion'Junio C Hamano1-3/+8
2018-11-05tree-walk.c: fix overoptimistic inclusion in :(exclude) matchingNguyễn Thái Ngọc Duy1-3/+8
2018-08-02Merge branch 'bc/object-id'Junio C Hamano1-1/+2
2018-07-18Merge branch 'sb/object-store-grafts'Junio C Hamano1-0/+1
2018-07-16tree-walk: replace hard-coded constants with the_hash_algobrian m. carlson1-1/+2
2018-05-16object-store: move object access functions to object-store.hStefan Beller1-0/+1
2018-05-02tree-walk: convert get_tree_entry_follow_symlinks to object_idbrian m. carlson1-8/+8
2018-05-02tree-walk: avoid hard-coded 20 constantbrian m. carlson1-1/+1
2018-03-14sha1_file: convert read_sha1_file to struct object_idbrian m. carlson1-2/+2
2018-03-14sha1_file: convert read_object_with_reference to object_idbrian m. carlson1-5/+4
2018-03-14tree-walk: convert tree entry functions to object_idbrian m. carlson1-10/+10
2018-03-14tree-walk: convert get_tree_entry_follow_symlinks internals to object_idbrian m. carlson1-11/+11
2017-12-19Merge branch 'bw/pathspec-match-submodule-boundary'Junio C Hamano1-2/+3
2017-12-05pathspec: only match across submodule boundaries when requestedBrandon Williams1-2/+3
2017-09-29Merge branch 'rj/no-sign-compare'Junio C Hamano1-2/+1
2017-09-22ALLOC_GROW: avoid -Wsign-compare warningsRamsay Jones1-2/+1
2017-08-14tree-walk: convert fill_tree_descriptor() to object_idRené Scharfe1-4/+5
2017-06-02Merge branch 'jk/diff-blob'Junio C Hamano1-1/+0
2017-05-24get_sha1_with_context: always initialize oc->symlink_pathJeff King1-1/+0
2017-05-09doc: replace more gmane linksJunio C Hamano1-1/+1
2016-12-22grep: enable recurse-submodules to work on <tree> objectsBrandon Williams1-0/+28
2016-09-27fsck: handle bad trees like other errorsDavid Turner1-11/+72
2016-09-27tree-walk: be more specific about corrupt tree errorsJeff King1-5/+7
2016-04-25tree-walk: convert tree_entry_extract() to use struct object_idbrian m. carlson1-5/+5
2016-04-25struct name_entry: use struct object_id instead of unsigned char sha1[20]brian m. carlson1-3/+3
2016-01-05do_compare_entry: use already-computed pathDavid Turner1-0/+7
2015-05-20tree-walk: learn get_tree_entry_follow_symlinksDavid Turner1-0/+206
2014-06-20cleanup duplicate name_compare() functionsJeremiah Mahler1-10/+0
2014-02-24tree-walk: finally switch over tree descriptors to contain a pre-parsed entryKirill Smelkov1-1/+1
2014-01-27Merge branch 'as/tree-walk-fix-aggressive-short-cut'Junio C Hamano1-1/+1
2014-01-27tree_entry_interesting: match against all pathspecsAndy Spencer1-1/+1
2014-01-23tree-walk.c: ignore trailing slash on submodule in tree_entry_interesting()Nguyễn Thái Ngọc Duy1-1/+1
2013-12-06Support pathspec magic :(exclude) and its short form :!Nguyễn Thái Ngọc Duy1-4/+79
2013-09-09Merge branch 'jl/submodule-mv'Junio C Hamano1-16/+62
2013-07-19traverse_trees(): clarify return value of the callbackStefan Beller1-6/+5
2013-07-15parse_pathspec: accept :(icase)path syntaxNguyễn Thái Ngọc Duy1-11/+48
2013-07-15pathspec: support :(glob) syntaxNguyễn Thái Ngọc Duy1-5/+4
2013-07-15pathspec: support :(literal) syntax for noglob pathspecNguyễn Thái Ngọc Duy1-1/+4
2013-07-15guard against new pathspec magic in pathspec matching codeNguyễn Thái Ngọc Duy1-0/+2
2013-07-15parse_pathspec: add special flag for max_depth featureNguyễn Thái Ngọc Duy1-2/+6
2013-07-15move struct pathspec and related functions to pathspec.[ch]Nguyễn Thái Ngọc Duy1-0/+1
2012-11-26tree_entry_interesting: do basedir compare on wildcard patterns when possibleNguyễn Thái Ngọc Duy1-1/+64
2012-11-26pathspec: apply "*.c" optimization from excludeNguyễn Thái Ngọc Duy1-2/+4
2012-11-26pathspec: do exact comparison on the leading non-wildcard partNguyễn Thái Ngọc Duy1-2/+4
2012-11-19pathspec: save the non-wildcard length partNguyễn Thái Ngọc Duy1-2/+2
2012-11-09Merge branch 'nd/tree-walk-enum-cleanup'Jeff King1-4/+4
2012-10-19tree-walk: use enum interesting instead of integerNguyễn Thái Ngọc Duy1-4/+4
2012-01-14Document limited recursion pathspec matching with wildcardsNguyễn Thái Ngọc Duy1-0/+3
2011-10-27tree_entry_interesting(): give meaningful names to return valuesNguyễn Thái Ngọc Duy1-24/+21
2011-10-27tree_entry_interesting: make use of local pointer "item"Nguyễn Thái Ngọc Duy1-2/+2
2011-10-27get_tree_entry(): do not call find_tree_entry() on an empty treeJunio C Hamano1-3/+7
2011-10-27tree-walk.c: do not leak internal structure in tree_entry_len()Nguyễn Thái Ngọc Duy1-8/+8
2011-10-10Merge branch 'dm/tree-walk'Junio C Hamano1-4/+4
2011-10-09Fix some "variable might be used uninitialized" warningsRamsay Jones1-1/+1
2011-09-28tree-walk: micro-optimization in tree_entry_interestingDan McGee1-2/+2
2011-09-28tree-walk: drop unused parameter from match_dir_prefixDan McGee1-2/+2
2011-08-29traverse_trees(): allow pruning with pathspecJunio C Hamano1-6/+33
2011-04-05pathspec: rename per-item field has_wildcard to use_wildcardJunio C Hamano1-2/+2
2011-02-03grep: drop pathspec_matches() in favor of tree_entry_interesting()Nguyễn Thái Ngọc Duy1-11/+13
2011-02-03tree_entry_interesting(): optimize wildcard matching when base is matchedNguyễn Thái Ngọc Duy1-0/+14
2011-02-03tree_entry_interesting(): support wildcard matchingNguyễn Thái Ngọc Duy1-3/+27
2011-02-03tree_entry_interesting(): fix depth limit with overlapping pathspecsNguyễn Thái Ngọc Duy1-1/+1
2011-02-03tree_entry_interesting(): support depth limitNguyễn Thái Ngọc Duy1-3/+16
2011-02-03tree_entry_interesting(): refactor into separate smaller functionsNguyễn Thái Ngọc Duy1-77/+93
2011-02-03diff-tree: convert base+baselen to writable strbufNguyễn Thái Ngọc Duy1-2/+3
2011-02-03Move tree_entry_interesting() to tree-walk.c and export itNguyễn Thái Ngọc Duy1-0/+114
2010-08-11unpack_trees: group error messages by typeMatthieu Moy1-3/+8
2010-02-14Merge branch 'maint-1.6.6' into maintJunio C Hamano1-0/+1
2010-02-14fix minor memory leak in get_tree_entry()René Scharfe1-0/+1
2010-01-03traverse_trees(): handle D/F conflict case sanelyJunio C Hamano1-43/+234
2008-03-09Fix tree-walking compare_entry() in the presense of --prefixLinus Torvalds1-0/+3
2008-03-09Make 'traverse_trees()' traverse conflicting DF entries in parallelLinus Torvalds1-2/+6
2008-03-09Add return value to 'traverse_tree()' callbackLinus Torvalds1-7/+15
2008-03-09Make 'traverse_tree()' use linked structure rather than 'const char *base'Linus Torvalds1-2/+33
2008-01-06tree-walk: don't parse incorrect entriesMartin Koegler1-2/+8
2007-06-07War on whitespaceJunio C Hamano1-1/+0
2007-03-21Switch over tree descriptors to contain a pre-parsed entryLinus Torvalds1-57/+44
2007-03-21Initialize tree descriptors with a helper function rather than by hand.Linus Torvalds1-9/+15
2007-03-21Remove "pathlen" from "struct name_entry"Linus Torvalds1-4/+2
2007-03-18Avoid unnecessary strlen() callsLinus Torvalds1-2/+2
2007-01-09get_tree_entry: map blank requested entry to tree rootJeff King1-1/+8
2007-01-04Remove shadowing variable from traverse_trees()René Scharfe1-1/+0
2006-08-23Convert memcpy(a,b,20) to hashcpy(a,b).Shawn Pearce1-2/+2
2006-06-20Remove all void-pointer arithmetic.Florian Forster1-5/+6
2006-05-30tree_entry(): new tree-walking helper functionLinus Torvalds1-2/+31
2006-05-28Don't use "sscanf()" for tree mode scanningLinus Torvalds1-3/+18
2006-04-19get_tree_entry(): make it available from tree-walkJunio C Hamano1-0/+50
2006-04-04Use blob_, commit_, tag_, and tree_type throughout.Peter Eriksen1-1/+2
2006-03-29tree/diff header cleanup.Junio C Hamano1-0/+116