aboutsummaryrefslogtreecommitdiffstats
path: root/cache-tree.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-28Merge branch 'eb/hash-transition'Junio C Hamano1-2/+2
2024-03-07Merge branch 'js/merge-tree-3-trees'Junio C Hamano1-2/+2
2024-02-23cache-tree: avoid an unnecessary checkJohannes Schindelin1-1/+1
2024-02-23Always check `parse_tree*()`'s return valueJohannes Schindelin1-2/+2
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-1/+0
2023-10-02tree-walk: init_tree_desc take an oid to get the hash algorithmEric W. Biederman1-1/+1
2023-10-02object-file: add a compat_oid_in parameter to write_object_file_flagsEric W. Biederman1-1/+1
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-06-21cache.h: remove this no-longer-used headerElijah Newren1-1/+1
2023-06-21read-cache*.h: move declarations for read-cache.c functions from cache.hElijah Newren1-0/+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/+2
2023-04-04Merge branch 'ab/remove-implicit-use-of-the-repository' into en/header-split-...Junio C Hamano1-8/+8
2023-03-28libs: use "struct repository *" argument, not "the_repository"Ævar Arnfjörð Bjarmason1-2/+2
2023-03-28cocci: apply the "promisor-remote.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-2/+2
2023-03-28cocci: apply the "object-store.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-4/+4
2023-03-21environment.h: move declarations for environment.c functions from cache.hElijah Newren1-0/+1
2023-03-21treewide: remove unnecessary cache.h inclusion from a few headersElijah Newren1-1/+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-1/+2
2023-02-22Merge branch 'rs/cache-tree-strbuf-growth-fix'Junio C Hamano1-2/+1
2023-02-10cache-tree: fix strbuf growth in prime_cache_tree_rec()René Scharfe1-2/+1
2023-01-08*: fix typos which duplicate a wordAndrei Rybak1-1/+1
2022-08-20verify_one_sparse(): drop unused parametersJeff King1-4/+2
2022-06-16cache-tree: remove cache_tree_find_path()Derrick Stolee1-27/+0
2022-06-10Merge branch 'ab/bug-if-bug'Junio C Hamano1-4/+4
2022-06-03Merge branch 'ds/sparse-sparse-checkout'Junio C Hamano1-0/+27
2022-06-03Merge branch 'ns/batch-fsync'Junio C Hamano1-0/+3
2022-06-02cache-tree.c: use bug() and BUG_if_bug()Ævar Arnfjörð Bjarmason1-4/+4
2022-05-23cache-tree: implement cache_tree_find_path()Derrick Stolee1-0/+27
2022-04-06cache-tree: use ODB transaction around writing a treeNeeraj Singh1-0/+3
2022-02-25object-file API: have hash_object_file() take "enum object_type"Ævar Arnfjörð Bjarmason1-3/+3
2022-02-25object-file API: have write_object_file() take "enum object_type"Ævar Arnfjörð Bjarmason1-1/+1
2021-12-10Merge branch 'vd/sparse-reset'Junio C Hamano1-3/+43
2021-11-29reset: make sparse-aware (except --mixed)Victoria Dye1-4/+43
2021-11-29reset: integrate with sparse indexVictoria Dye1-0/+1
2021-10-25Merge branch 'pw/sparse-cache-tree-verify-fix'Junio C Hamano1-8/+29
2021-10-12commit: fix duplication regression in permission error outputÆvar Arnfjörð Bjarmason1-2/+3
2021-10-07sparse index: fix use-after-free bug in cache_tree_verify()Phillip Wood1-8/+29
2021-08-04Merge branch 'ds/commit-and-checkout-with-sparse-index'Junio C Hamano1-2/+0
2021-07-23cache-tree: prefetch in partial clone read-treeJonathan Tan1-2/+9
2021-07-14commit: integrate with sparse-indexDerrick Stolee1-2/+0
2021-04-30Merge branch 'ds/sparse-index-protections'Junio C Hamano1-0/+40
2021-03-30sparse-index: loose integration with cache_tree_verify()Derrick Stolee1-0/+19
2021-03-30cache-tree: integrate with sparse directory entriesDerrick Stolee1-0/+18
2021-03-30sparse-index: convert from full to sparseDerrick Stolee1-0/+3
2021-03-13use CALLOC_ARRAYRené Scharfe1-1/+1
2021-01-23cache-tree: extract subtree_pos()Derrick Stolee1-3/+3
2021-01-23cache-tree: simplify verify_cache() prototypeDerrick Stolee1-9/+8
2021-01-23cache-tree: clean up cache_tree_update()Derrick Stolee1-8/+9
2021-01-15cache-tree: speed up consecutive path comparisonsDerrick Stolee1-2/+2
2021-01-15cache-tree: use ce_namelen() instead of strlen()René Scharfe1-4/+6
2021-01-15cache-tree: trace regions for prime_cache_treeDerrick Stolee1-0/+3
2021-01-15cache-tree: trace regions for I/ODerrick Stolee1-1/+10
2021-01-04cache-tree: use trace2 in cache_tree_update()Derrick Stolee1-0/+2
2020-01-31sha1-file: pass git_hash_algo to hash_object_file()Matheus Tavares1-3/+6
2020-01-31cache-tree: use given repo's hash_algo at verify_one()Matheus Tavares1-1/+1
2019-10-15Merge branch 'en/merge-recursive-cleanup'Junio C Hamano1-23/+62
2019-10-07Merge branch 'jt/cache-tree-avoid-lazy-fetch-during-merge'Junio C Hamano1-1/+1
2019-09-18Merge branch 'cc/multi-promisor'Junio C Hamano1-1/+2
2019-09-09cache-tree: do not lazy-fetch tentative treeJonathan Tan1-1/+1
2019-08-22Merge branch 'jk/tree-walk-overflow'Junio C Hamano1-1/+1
2019-08-19cache-tree: share code between functions writing an index as a treeElijah Newren1-23/+62
2019-07-31tree-walk: drop oid from traverse_infoJeff King1-1/+1
2019-06-25Use promisor_remote_get_direct() and has_promisor_remote()Christian Couder1-1/+2
2019-06-20cache-tree/blame: avoid reusing the DEBUG constantJeff Hostetler1-7/+7
2019-02-06Merge branch 'jk/loose-object-cache-oid'Junio C Hamano1-2/+2
2019-01-29Merge branch 'bc/tree-walk-oid'Junio C Hamano1-2/+2
2019-01-15tree-walk: store object_id in a separate memberbrian m. carlson1-2/+2
2019-01-14Merge branch 'nd/indentation-fix'Junio C Hamano1-1/+1
2019-01-08convert has_sha1_file() callers to has_object_file()Jeff King1-2/+2
2018-12-09Indent code with TABsNguyễn Thái Ngọc Duy1-1/+1
2018-11-12cache-tree.c: remove the_repository referencesNguyễn Thái Ngọc Duy1-11/+15
2018-10-19Merge branch 'jt/cache-tree-allow-missing-object-in-partial-clone'Junio C Hamano1-1/+5
2018-10-10cache-tree: skip some blob checks in partial cloneJonathan Tan1-1/+5
2018-10-04more oideq/hasheq conversionsJeff King1-1/+1
2018-09-17Merge branch 'jk/cocci'Junio C Hamano1-1/+1
2018-09-17Merge branch 'nd/unpack-trees-with-cache-tree'Junio C Hamano1-0/+80
2018-08-29convert "oidcmp() == 0" to oideq()Jeff King1-1/+1
2018-08-18cache-tree: verify valid cache-tree in the test suiteNguyễn Thái Ngọc Duy1-0/+78
2018-08-18unpack-trees: add performance tracingNguyễn Thái Ngọc Duy1-0/+2
2018-08-13cache-tree: wrap the_index based wrappers with #ifdefNguyễn Thái Ngọc Duy1-12/+0
2018-06-29tree: add repository argument to lookup_treeStefan Beller1-1/+2
2018-06-29Merge branch 'sb/object-store-grafts' into sb/object-store-lookupJunio C Hamano1-0/+1
2018-05-16object-store: move object access functions to object-store.hStefan Beller1-0/+1
2018-05-02cache-tree: use is_empty_tree_oidbrian m. carlson1-1/+1
2018-05-02cache: add a function to read an object ID from a bufferbrian m. carlson1-1/+1
2018-03-14cache-tree: convert remnants to struct object_idbrian m. carlson1-14/+15
2018-03-14cache-tree: convert write_*_as_tree to object_idbrian m. carlson1-5/+5
2018-02-15Merge branch 'po/object-id'Junio C Hamano1-8/+8
2018-02-13Merge branch 'sg/cocci-move-array'Junio C Hamano1-3/+2
2018-02-13Merge branch 'tg/split-index-fixes'Junio C Hamano1-1/+1
2018-01-30sha1_file: convert write_sha1_file to object_idPatryk Obara1-2/+3
2018-01-30sha1_file: convert hash_sha1_file to object_idPatryk Obara1-6/+5
2018-01-22Use MOVE_ARRAYSZEDER Gábor1-3/+2
2018-01-19read-cache: fix reading the shared index for other reposThomas Gummerer1-1/+1
2017-11-06Merge branch 'ma/lockfile-fixes'Junio C Hamano1-8/+4
2017-10-10cleanup: fix possible overflow errors in binary searchDerrick Stolee1-1/+1
2017-10-06cache-tree: simplify locking logicMartin Ågren1-8/+4
2017-09-06stop leaking lock structs in some simple casesJeff King1-10/+4
2017-09-06write_index_as_tree: cleanup tempfile on errorJeff King1-8/+15
2017-07-17use MOVE_ARRAYRené Scharfe1-3/+2
2017-05-29Merge branch 'bc/object-id'Junio C Hamano1-16/+17
2017-05-08Convert lookup_tree to struct object_idbrian m. carlson1-1/+1
2017-05-02Convert struct cache_tree to use struct object_idbrian m. carlson1-15/+16
2017-04-23cache-tree: reject entries with null sha1Jeff King1-1/+3
2016-09-07cache: convert struct cache_entry to use struct object_idbrian m. carlson1-2/+2
2016-07-18cache-tree: do not generate empty trees as a result of all i-t-a subentriesNguyễn Thái Ngọc Duy1-1/+9
2016-07-18cache-tree.c: fix i-t-a entry skipping directory updates sometimesNguyễn Thái Ngọc Duy1-2/+2
2016-04-25struct name_entry: use struct object_id instead of unsigned char sha1[20]brian m. carlson1-2/+2
2016-02-26Merge branch 'jk/tighten-alloc'Junio C Hamano1-3/+1
2016-02-22convert trivial cases to FLEX_ARRAY macrosJeff King1-3/+1
2016-01-20Merge branch 'nd/ita-cleanup'Junio C Hamano1-1/+1
2015-11-20Remove get_object_hash.brian m. carlson1-1/+1
2015-11-20Add several uses of get_object_hash.brian m. carlson1-1/+1
2015-09-06add and use a convenience macro ce_intent_to_add()Nguyễn Thái Ngọc Duy1-1/+1
2015-08-04cache-tree: introduce write_index_as_tree()Paul Tan1-12/+17
2014-11-06Merge branch 'jk/cache-tree-protect-from-broken-libgit2'Junio C Hamano1-0/+2
2014-10-30cache-tree: avoid infinite loop on zero-entry treeJeff King1-0/+2
2014-10-01lockfile.h: extract new header file for the functions in lockfile.cMichael Haggerty1-0/+1
2014-09-11Merge branch 'dt/cache-tree-repair'Junio C Hamano1-2/+17
2014-09-03cache-tree: do not try to use an invalidated subtree info to build a treeJunio C Hamano1-1/+6
2014-07-07cache-tree: create/update cache-tree on checkoutDavid Turner1-1/+11
2014-06-13cache-tree: mark istate->cache_changed on prime_cache_tree()Nguyễn Thái Ngọc Duy1-4/+5
2014-06-13cache-tree: mark istate->cache_changed on cache tree updateNguyễn Thái Ngọc Duy1-14/+11
2014-06-13cache-tree: mark istate->cache_changed on cache tree invalidationNguyễn Thái Ngọc Duy1-4/+11
2014-06-13read-cache: new API write_locked_index instead of write_index/write_cacheNguyễn Thái Ngọc Duy1-2/+1
2014-03-18Merge branch 'rm/strchrnul-not-strlen'Junio C Hamano1-4/+3
2014-03-18Merge branch 'mh/simplify-cache-tree-find'Junio C Hamano1-10/+7
2014-03-10use strchrnul() in place of strchr() and strlen()Rohit Mani1-9/+6
2014-03-05cache_tree_find(): use path variable when passing over slashesMichael Haggerty1-2/+3
2014-03-05cache_tree_find(): remove early returnMichael Haggerty1-2/+0
2014-03-05cache_tree_find(): remove redundant checkMichael Haggerty1-1/+1
2014-03-05cache_tree_find(): fix comment formattingMichael Haggerty1-2/+3
2014-03-05cache_tree_find(): find the end of path component using strchrnul()Michael Haggerty1-3/+1
2014-03-05cache_tree_find(): remove redundant checksMichael Haggerty1-4/+3
2014-03-03cache-tree.c: use ALLOC_GROW() in find_subtree()Dmitry S. Dolzhenko1-5/+1
2013-07-09Convert "struct cache_entry *" to "const ..." wherever possibleNguyễn Thái Ngọc Duy1-9/+10
2012-12-15cache-tree: invalidate i-t-a paths after generating treesNguyễn Thái Ngọc Duy1-2/+12
2012-12-15cache-tree: fix writing cache-tree when CE_REMOVE is presentNguyễn Thái Ngọc Duy1-7/+23
2012-12-15cache-tree: replace "for" loops in update_one with "while" loopsNguyễn Thái Ngọc Duy1-5/+10
2012-12-15cache-tree: remove dead i-t-a code in verify_cache()Nguyễn Thái Ngọc Duy1-6/+2
2012-02-12Merge branch 'nd/cache-tree-api-refactor'Junio C Hamano1-15/+12
2012-02-12Merge branch 'jc/maint-commit-ignore-i-t-a'Junio C Hamano1-3/+3
2012-02-07cache-tree: update API to take abitrary flagsNguyễn Thái Ngọc Duy1-15/+12
2012-02-07commit: ignore intent-to-add entries instead of refusingJunio C Hamano1-3/+3
2011-12-06Refactor cache_tree_update idiom from commitThomas Rast1-4/+15
2010-09-06cache_tree_free: Fix small memory leakElijah Newren1-1/+3
2010-08-11write-tree: Avoid leak when index refers to an invalid objectJonathan Nieder1-1/+3
2009-07-14Improve on the 'invalid object' error message at commit timeLinus Torvalds1-1/+2
2009-05-25Optimize "diff-index --cached" using cache-treeJunio C Hamano1-0/+32
2009-05-25cache-tree.c::cache_tree_find(): simplify internal APIJunio C Hamano1-0/+2
2009-05-20write-tree --ignore-cache-treeJunio C Hamano1-3/+7
2009-04-20Move prime_cache_tree() to cache-tree.cJunio C Hamano1-0/+34
2008-11-30git add --intent-to-add: do not let an empty blob be committed by accidentJunio C Hamano1-3/+7
2008-07-16cache-tree.c: make cache_tree_find() staticNanako Shiraishi1-1/+1
2008-04-24Merge branch 'maint-1.5.4' into maintJunio C Hamano1-2/+5
2008-04-23write-tree: properly detect failure to write tree objectsJunio C Hamano1-2/+5
2008-02-11Merge branch 'jc/error-message-in-cherry-pick'Junio C Hamano1-0/+55
2008-02-05Make error messages from cherry-pick/revert more sensibleJunio C Hamano1-0/+55
2008-01-21Make on-disk index representation separate from in-core oneLinus Torvalds1-2/+2
2007-09-26Small cache_tree_write refactor.Pierre Habouzit1-14/+5
2007-09-16Now that cache.h needs strbuf.h, remove useless includes.Pierre Habouzit1-1/+0
2007-09-10Strbuf API extensions and fixes.Pierre Habouzit1-3/+2
2007-09-06Use strbuf API in cache-tree.cPierre Habouzit1-37/+22
2007-06-22Two trivial -Wcast-qual fixesJunio C Hamano1-1/+1
2007-05-21rename dirlink to gitlink.Martin Waitz1-1/+1
2007-04-10Teach core object handling functions about gitlinksLinus Torvalds1-1/+1
2006-11-13Catch errors when writing an index that contains invalid objects.Johannes Sixt1-0/+2
2006-10-30Surround "#define DEBUG 0" with "#ifndef DEBUG..#endif"Junio C Hamano1-0/+2
2006-10-14Add hash_sha1_file()Rene Scharfe1-6/+2
2006-08-23Convert memcpy(a,b,20) to hashcpy(a,b).Shawn Pearce1-3/+3
2006-05-07Merge branch 'jc/gitlink' into nextJunio C Hamano1-0/+26
2006-05-03cache-tree: a bit more debugging support.Junio C Hamano1-2/+6
2006-05-01write-tree: --prefix=<path>Junio C Hamano1-0/+26
2006-05-01cache-tree: replace a sscanf() by two strtol() callsJohannes Schindelin1-1/+10
2006-04-27cache-tree.c: typefixJunio C Hamano1-1/+1
2006-04-27cache_tree_update: give an option to update cache-tree only.Junio C Hamano1-5/+15
2006-04-27read-tree: teach 1-way merege and plain read to prime cache-tree.Junio C Hamano1-3/+8
2006-04-25cache-tree: sort the subtree entries.Junio C Hamano1-26/+66
2006-04-24index: make the index file format extensible.Junio C Hamano1-82/+26
2006-04-24cache-tree: protect against "git prune".Junio C Hamano1-1/+1
2006-04-23Add cache-tree.Junio C Hamano1-0/+519