aboutsummaryrefslogtreecommitdiffstats
path: root/tree.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-28Merge branch 'eb/hash-transition'Junio C Hamano1-1/+1
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-3/+0
2023-10-02tree-walk: init_tree_desc take an oid to get the hash algorithmEric W. Biederman1-1/+1
2023-08-31read_tree(): respect max_allowed_tree_depthJeff King1-2/+7
2023-08-02Merge branch 'jc/tree-walk-drop-base-offset'Junio C Hamano1-1/+1
2023-07-07tree-walk: lose base_offset that is never used in tree_entry_interestingJunio C Hamano1-1/+1
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-24cache,tree: move basic name compare functions from read-cache to treeElijah Newren1-0/+68
2023-04-24cache,tree: move cmp_cache_name_compare from tree.[ch] to read-cache.cElijah Newren1-10/+0
2023-04-11object-name.h: move declarations for object-name.c functions from cache.hElijah Newren1-0/+1
2023-04-04Merge branch 'ab/remove-implicit-use-of-the-repository' into en/header-split-...Junio C Hamano1-2/+3
2023-03-28libs: use "struct repository *" argument, not "the_repository"Ævar Arnfjörð Bjarmason1-1/+1
2023-03-28cocci: apply the "object-store.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-1/+2
2023-03-28cocci: apply the "commit.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-1/+1
2023-02-23cache.h: remove dependence on hex.h; make other files include it explicitlyElijah Newren1-0/+1
2021-03-20tree.h API: simplify read_tree_recursive() signatureÆvar Arnfjörð Bjarmason1-12/+7
2021-03-20tree.h API: expose read_tree_1() as read_tree_at()Ævar Arnfjörð Bjarmason1-8/+9
2021-03-20tree.c API: move read_tree() into builtin/ls-files.cÆvar Arnfjörð Bjarmason1-89/+0
2020-12-13tree: enable cmp_cache_name_compare() to be used elsewhereElijah Newren1-1/+1
2020-06-17object: drop parsed_object_pool->commit_countAbhishek Kumar1-1/+1
2019-09-03tree: simplify parse_tree_indirect()René Scharfe1-15/+3
2019-06-20object: convert create_object() to use object_idJeff King1-2/+1
2019-06-20object: convert lookup_object() to use object_idJeff King1-1/+1
2019-02-06Merge branch 'nd/the-index-final'Junio C Hamano1-1/+0
2019-01-29Merge branch 'bc/tree-walk-oid'Junio C Hamano1-5/+5
2019-01-24cache.h: flip NO_THE_INDEX_COMPATIBILITY_MACROS switchNguyễn Thái Ngọc Duy1-1/+0
2019-01-15tree-walk: store object_id in a separate memberbrian m. carlson1-5/+5
2018-11-19tree-walk.c: make tree_entry_interesting() take an indexNguyễn Thái Ngọc Duy1-1/+2
2018-11-19tree.c: make read_tree*() take 'struct repository *'Nguyễn Thái Ngọc Duy1-8/+10
2018-08-02Merge branch 'jm/cache-entry-from-mem-pool'Junio C Hamano1-3/+1
2018-07-03block alloc: add lifecycle APIs for cache_entry structsJameson Miller1-3/+1
2018-06-29tree: allow lookup_tree to handle arbitrary repositoriesStefan Beller1-5/+5
2018-06-29commit: add repository argument to lookup_commitStefan Beller1-1/+1
2018-06-29tree: add repository argument to lookup_treeStefan Beller1-2/+2
2018-06-29object: add repository argument to object_as_typeStefan Beller1-1/+1
2018-06-29object: add repository argument to lookup_objectStefan Beller1-1/+1
2018-06-29object: add repository argument to parse_objectStefan Beller1-2/+3
2018-06-29Merge branch 'sb/object-store-grafts' into sb/object-store-lookupJunio C Hamano1-0/+1
2018-06-25Merge branch 'sb/object-store-alloc'Junio C Hamano1-1/+3
2018-05-23Merge branch 'ds/lazy-load-trees'Junio C Hamano1-2/+2
2018-05-16object-store: move object access functions to object-store.hStefan Beller1-0/+1
2018-05-16alloc: allow arbitrary repositories for alloc functionsStefan Beller1-0/+1
2018-05-09alloc: add repository argument to alloc_tree_nodeStefan Beller1-1/+1
2018-05-09object: add repository argument to create_objectStefan Beller1-1/+2
2018-04-11treewide: replace maybe_tree with accessor methodsDerrick Stolee1-2/+2
2018-04-11treewide: rename tree to maybe_treeDerrick Stolee1-2/+2
2018-03-14sha1_file: convert read_sha1_file to struct object_idbrian m. carlson1-1/+1
2018-03-14tree: convert read_tree_recursive to struct object_idbrian m. carlson1-7/+7
2017-06-24Merge branch 'ab/free-and-null'Junio C Hamano1-2/+1
2017-06-16coccinelle: make use of the "type" FREE_AND_NULL() ruleÆvar Arnfjörð Bjarmason1-2/+1
2017-06-13tree: convert read_tree to take an index parameterBrandon Williams1-10/+18
2017-05-08object: convert parse_object* to take struct object_idbrian m. carlson1-2/+2
2017-05-08tree: convert parse_tree_indirect to struct object_idbrian m. carlson1-2/+2
2017-05-08Convert lookup_tree to struct object_idbrian m. carlson1-4/+4
2017-05-08tree: convert read_tree_1 to use struct object_id internallybrian m. carlson1-4/+4
2017-05-08Convert lookup_commit* to struct object_idbrian m. carlson1-1/+1
2016-09-29use QSORTRené Scharfe1-2/+1
2016-09-07cache: convert struct cache_entry to use struct object_idbrian m. carlson1-1/+1
2016-04-25struct name_entry: use struct object_id instead of unsigned char sha1[20]brian m. carlson1-5/+5
2015-11-20Remove get_object_hash.brian m. carlson1-2/+2
2015-11-20Convert struct object to object_idbrian m. carlson1-3/+3
2015-11-20Add several uses of get_object_hash.brian m. carlson1-2/+2
2015-06-11Merge branch 'jk/squelch-missing-link-warning-for-unreachable'Junio C Hamano1-2/+3
2015-06-01add quieter versions of parse_{tree,commit}Jeff King1-2/+3
2014-12-01tree.c: update read_tree_recursive callback to pass strbuf as baseNguyễn Thái Ngọc Duy1-5/+11
2014-07-13add object_as_type helper for casting objectsJeff King1-8/+1
2014-07-13move setting of object->type to alloc_* functionsJeff King1-1/+1
2013-09-17Merge branch 'jk/free-tree-buffer'Junio C Hamano1-0/+8
2013-09-09Merge branch 'jl/submodule-mv'Junio C Hamano1-2/+2
2013-07-15checkout: convert read_tree_some to take struct pathspecNguyễn Thái Ngọc Duy1-2/+2
2013-07-09Convert "struct cache_entry *" to "const ..." wherever possibleNguyễn Thái Ngọc Duy1-1/+1
2013-06-06clear parsed flag when we free tree buffersJeff King1-0/+8
2012-07-11Strip namelen out of ce_flags into a ce_namelen fieldThomas Gummerer1-3/+4
2011-10-27tree_entry_interesting(): give meaningful names to return valuesNguyễn Thái Ngọc Duy1-4/+5
2011-10-27tree-walk.c: do not leak internal structure in tree_entry_len()Nguyễn Thái Ngọc Duy1-1/+1
2011-03-25Convert read_tree{,_recursive} to support struct pathspecNguyễn Thái Ngọc Duy1-9/+4
2011-03-25Reimplement read_tree_recursive() using tree_entry_interesting()Nguyễn Thái Ngọc Duy1-95/+57
2009-04-20Fix off-by-one in read_tree_recursiveJohannes Schindelin1-0/+1
2009-04-18Merge branch 'bs/maint-1.6.0-tree-walk-prefix' into maintJunio C Hamano1-2/+6
2009-04-01match_tree_entry(): a pathspec only matches at directory boundariesJunio C Hamano1-2/+6
2009-02-10Drop double-semicolon in CJunio C Hamano1-1/+1
2009-02-07tree.c: allow read_tree_recursive() to traverse gitlink entriesLars Hjemli1-0/+28
2008-07-15add context pointer to read_tree_recursive()René Scharfe1-6/+6
2008-03-02Merge branch 'mk/maint-parse-careful'Junio C Hamano1-48/+0
2008-02-25Remove unused object-ref codeMartin Koegler1-48/+0
2008-01-21Make on-disk index representation separate from in-core oneLinus Torvalds1-2/+2
2007-08-10Optimize "diff --cached" performance.Junio C Hamano1-3/+66
2007-06-06Merge branch 'sv/objfixes'Junio C Hamano1-1/+6
2007-06-06Don't assume tree entries that are not dirs are blobsSam Vilain1-1/+6
2007-05-21rename dirlink to gitlink.Martin Waitz1-2/+2
2007-04-21Merge branch 'lt/objalloc'Junio C Hamano1-6/+2
2007-04-16Clean up object creation to use more common codeLinus Torvalds1-6/+2
2007-04-10Teach "fsck" not to follow subproject linksLinus Torvalds1-1/+14
2007-03-21Initialize tree descriptors with a helper function rather than by hand.Linus Torvalds1-6/+3
2007-03-21Remove "pathlen" from "struct name_entry"Linus Torvalds1-4/+5
2007-03-19Trivial cleanup of track_tree_refs()Linus Torvalds1-3/+1
2007-02-27convert object type handling from a string to a numberNicolas Pitre1-3/+3
2006-12-20simplify inclusion of system header files.Junio C Hamano1-1/+0
2006-08-23Convert memcpy(a,b,20) to hashcpy(a,b).Shawn Pearce1-1/+1
2006-08-14Make track_tree_refs void.David Rientjes1-2/+1
2006-07-12Remove TYPE_* constant macros and use object_type enums consistently.Linus Torvalds1-6/+6
2006-06-19Add specialized object allocatorLinus Torvalds1-1/+1
2006-06-17Shrink "struct object" a bitLinus Torvalds1-8/+8
2006-05-30tree_entry(): new tree-walking helper functionLinus Torvalds1-26/+15
2006-05-29Remove last vestiges of generic tree_entry_listLinus Torvalds1-42/+0
2006-05-29Remove unused "zeropad" entry from tree_list_entryLinus Torvalds1-2/+1
2006-05-29Remove "tree->entries" tree-entry list from tree parserLinus Torvalds1-24/+57
2006-05-29Switch "read_tree_recursive()" over to tree-walk functionalityLinus Torvalds1-13/+20
2006-05-29Make "tree_entry" have a SHA1 instead of a union of object pointersLinus Torvalds1-11/+14
2006-05-29Make "struct tree" contain the pointer to the tree bufferLinus Torvalds1-25/+22
2006-04-04Replace xmalloc+memset(0) with xcalloc.Peter Eriksen1-5/+2
2006-01-26Only use a single parser for tree objectsDaniel Barkalow1-30/+18
2006-01-07[PATCH] Compilation: zero-length array declaration.Junio C Hamano1-1/+1
2005-12-04struct tree: remove unused field "parent"Junio C Hamano1-1/+0
2005-11-28ls-tree: major rewrite to do pathspecLinus Torvalds1-10/+24
2005-11-15Rework object refs tracking to reduce memory usageSergey Vlasov1-1/+12
2005-09-10[PATCH] Add a function for getting a struct tree for an ent.Daniel Barkalow1-0/+21
2005-07-27git-fsck-cache: be stricter about "tree" objectsLinus Torvalds1-0/+1
2005-07-14Fix up read_tree() pathspec matching to use "const char **"Linus Torvalds1-4/+6
2005-07-14Start adding interfaces to read in partial treesLinus Torvalds1-4/+51
2005-06-25[PATCH] Fix oversimplified optimization for add_cache_entry().Junio C Hamano1-1/+1
2005-06-08[PATCH] Anal retentive 'const unsigned char *sha1'Jason McMullan1-1/+1
2005-05-29[PATCH] Rewrite ls-tree to behave more like "/bin/ls -a"Junio C Hamano1-1/+1
2005-05-20[PATCH] delta checkNicolas Pitre1-0/+2
2005-05-11[PATCH] read_tree_recursive(): Fix leaksJonas Fonseca1-2/+5
2005-05-07Add git-update-cache --replace option.Junio C Hamano1-1/+1
2005-05-06[PATCH] don't load and decompress objects twice with parse_object()Nicolas Pitre1-17/+27
2005-05-05Be more careful about tree entry modes.Linus Torvalds1-2/+4
2005-05-04[PATCH] Fix memory leaks in git-fsck-cacheSergey Vlasov1-2/+7
2005-05-02Make fsck-cache do better tree checking.Linus Torvalds1-5/+0
2005-04-26[PATCH] introduce xmalloc and xreallocChristopher Li1-4/+4
2005-04-24Don't add references to objects we couldn't find. Linus Torvalds1-1/+2
2005-04-24Verify that the object type matches for tree/commit objects even before parsing.Linus Torvalds1-1/+1
2005-04-24Set object type at object creation time, not object parse time.Linus Torvalds1-1/+1
2005-04-23[PATCH] Parse tree objects completelyDaniel Barkalow1-3/+17
2005-04-22Move "read_tree()" to "tree.c" to be used as a generic helper function.Linus Torvalds1-0/+65
2005-04-18[PATCH] Implementations of parsing functionsDaniel Barkalow1-0/+67