aboutsummaryrefslogtreecommitdiffstats
path: root/commit-graph.c
AgeCommit message (Expand)AuthorFilesLines
2024-01-26Merge branch 'ps/commit-graph-write-leakfix'Junio C Hamano1-11/+8
2024-01-16Merge branch 'jk/commit-graph-slab-clear-fix'Junio C Hamano1-0/+3
2024-01-15commit-graph: fix memory leak when not writing graphPatrick Steinhardt1-11/+8
2024-01-08Merge branch 'en/header-cleanup'Junio C Hamano1-2/+1
2024-01-05commit-graph: retain commit slab when closing NULL commit_graphJeff King1-0/+3
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-1/+0
2023-12-26treewide: add direct includes currently only pulled in transitivelyElijah Newren1-0/+1
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-1/+0
2023-12-18Merge branch 'ps/commit-graph-less-paranoid'Junio C Hamano1-1/+1
2023-12-09Merge branch 'jk/chunk-bounds-more'Junio C Hamano1-61/+33
2023-11-26commit-graph: disable GIT_COMMIT_GRAPH_PARANOIA by defaultPatrick Steinhardt1-1/+1
2023-11-09commit-graph: mark chunk error messages for translationJeff King1-9/+9
2023-11-09commit-graph: drop verify_commit_graph_lite()Jeff King1-20/+0
2023-11-09commit-graph: check order while reading fanout chunkJeff King1-12/+13
2023-11-09commit-graph: use fanout value for graph sizeJeff King1-5/+3
2023-11-09commit-graph: abort as soon as we see a bogus chunkJeff King1-16/+13
2023-11-09commit-graph: clarify missing-chunk error messagesJeff King1-3/+3
2023-11-09commit-graph: drop redundant call to "lite" verificationJeff King1-4/+0
2023-11-09commit-graph: handle overflow in chunk_size checksJeff King1-3/+3
2023-11-08Merge branch 'ps/do-not-trust-commit-graph-blindly-for-existence'Junio C Hamano1-1/+5
2023-11-01commit-graph: introduce envvar to disable commit existence checksPatrick Steinhardt1-1/+5
2023-10-23Merge branch 'jk/chunk-bounds'Junio C Hamano1-17/+102
2023-10-13Merge branch 'jk/commit-graph-leak-fixes'Junio C Hamano1-21/+19
2023-10-09commit-graph: check bounds when accessing BIDX chunkJeff King1-2/+14
2023-10-09commit-graph: check bounds when accessing BDAT chunkJeff King1-0/+10
2023-10-09commit-graph: bounds-check generation overflow chunkJeff King1-3/+7
2023-10-09commit-graph: check size of generations chunkJeff King1-2/+12
2023-10-09commit-graph: bounds-check base graphs chunkJeff King1-1/+7
2023-10-09commit-graph: detect out-of-bounds extra-edges pointersJeff King1-6/+14
2023-10-09commit-graph: check size of commit data chunkJeff King1-1/+11
2023-10-09midx: enforce chunk alignment on readingJeff King1-1/+1
2023-10-09commit-graph: check consistency of fanout tableJeff King1-0/+16
2023-10-09commit-graph: check size of oid fanout chunkJeff King1-2/+11
2023-10-09chunk-format: note that pair_chunk() is unsafeJeff King1-7/+7
2023-10-03commit-graph: free write-context base_graph_name during cleanupJeff King1-0/+1
2023-10-03commit-graph: free write-context entries before overwritingJeff King1-0/+2
2023-10-03commit-graph: free graph struct that was not added to chainJeff King1-0/+2
2023-10-03commit-graph: delay base_graph assignment in add_graph_to_chain()Jeff King1-2/+2
2023-10-03commit-graph: free all elements of graph chainJeff King1-18/+11
2023-10-03commit-graph: move slab-clearing to close_commit_graph()Jeff King1-1/+1
2023-09-28commit-graph: report incomplete chains during verificationJeff King1-2/+5
2023-09-28commit-graph: tighten chain size checkJeff King1-2/+8
2023-09-28commit-graph: check mixed generation validation when loading chain fileJeff King1-27/+27
2023-09-28commit-graph: factor out chain opening functionJeff King1-19/+39
2023-09-07Merge branch 'jk/unused-post-2.42'Junio C Hamano1-4/+5
2023-08-29commit-graph: mark unused data parameters in generation callbacksJeff King1-4/+5
2023-08-21commit-graph: avoid repeated mixed generation number warningsTaylor Blau1-16/+13
2023-08-21commit-graph: verify swapped zero/non-zero generation casesJeff King1-3/+6
2023-08-21commit-graph: introduce `commit_graph_generation_from_graph()`Taylor Blau1-2/+12
2023-07-25Merge branch 'tb/object-access-overflow-protection'Junio C Hamano1-23/+40
2023-07-18Merge branch 'tb/fsck-no-progress'Junio C Hamano1-17/+34
2023-07-14commit-graph.c: prevent overflow in `verify_commit_graph()`Taylor Blau1-2/+2
2023-07-14commit-graph.c: prevent overflow in `write_commit_graph()`Taylor Blau1-1/+1
2023-07-14commit-graph.c: prevent overflow in `merge_commit_graph()`Taylor Blau1-0/+5
2023-07-14commit-graph.c: prevent overflow in `split_graph_merge_strategy()`Taylor Blau1-1/+6
2023-07-14commit-graph.c: prevent overflow in `load_tree_for_commit()`Taylor Blau1-1/+1
2023-07-14commit-graph.c: prevent overflow in `fill_commit_in_graph()`Taylor Blau1-2/+2
2023-07-14commit-graph.c: prevent overflow in `fill_commit_graph_info()`Taylor Blau1-3/+3
2023-07-14commit-graph.c: prevent overflow in `load_oid_from_graph()`Taylor Blau1-1/+1
2023-07-14commit-graph.c: prevent overflow in add_graph_to_chain()Taylor Blau1-2/+9
2023-07-14commit-graph.c: prevent overflow in `write_commit_graph_file()`Taylor Blau1-10/+10
2023-07-10commit-graph.c: avoid duplicated progress output during `verify`Taylor Blau1-10/+17
2023-07-10commit-graph.c: pass progress to `verify_one_commit_graph()`Taylor Blau1-8/+9
2023-07-10commit-graph.c: iteratively verify commit-graph chainsTaylor Blau1-4/+5
2023-07-10commit-graph.c: extract `verify_one_commit_graph()`Taylor Blau1-8/+16
2023-07-05treewide: remove unnecessary includes for wrapper.hCalvin Wan1-1/+0
2023-06-29Merge branch 'en/header-split-cache-h-part-3'Junio C Hamano1-1/+2
2023-06-22Merge branch 'ds/disable-replace-refs'Junio C Hamano1-3/+1
2023-06-21object-store-ll.h: split this header out of object-store.hElijah Newren1-1/+1
2023-06-21repository: remove unnecessary include of path.hElijah Newren1-0/+1
2023-06-12replace-objects: create wrapper around settingDerrick Stolee1-3/+1
2023-05-09Merge branch 'en/header-split-cache-h-part-2'Junio C Hamano1-0/+1
2023-04-25Merge branch 'en/header-split-cache-h'Junio C Hamano1-1/+3
2023-04-24commit.h: reduce unnecessary includesElijah Newren1-0/+1
2023-04-11treewide: remove cache.h inclusion due to object-file.h 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 oid-array.hElijah Newren1-0/+1
2023-04-06Merge branch 'en/header-split-cleanup'Junio C Hamano1-1/+3
2023-04-06Merge branch 'ab/remove-implicit-use-of-the-repository'Junio C Hamano1-2/+2
2023-04-06Merge branch 'ps/ahead-behind-truncation-fix'Junio C Hamano1-1/+1
2023-04-06Merge branch 'ds/ahead-behind'Junio C Hamano1-71/+136
2023-04-04Merge branch 'ab/remove-implicit-use-of-the-repository' into en/header-split-...Junio C Hamano1-2/+2
2023-03-28libs: use "struct repository *" argument, not "the_repository"Ævar Arnfjörð Bjarmason1-1/+1
2023-03-28cocci: apply the "packfile.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-1/+1
2023-03-28cocci: apply the "commit.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-1/+1
2023-03-27commit-graph: fix truncated generation numbersPatrick Steinhardt1-1/+1
2023-03-21csum-file.h: remove unnecessary inclusion of cache.hElijah Newren1-1/+1
2023-03-21wrapper.h: move declarations for wrapper.c functions from cache.hElijah Newren1-0/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2023-03-20commit-graph: introduce `ensure_generations_valid()`Taylor Blau1-0/+29
2023-03-20commit-graph: return generation from memoryDerrick Stolee1-5/+3
2023-03-20commit-graph: simplify compute_generation_numbers()Derrick Stolee1-43/+21
2023-03-20commit-graph: refactor compute_topological_levels()Derrick Stolee1-23/+83
2023-02-23cache.h: remove dependence on hex.h; make other files include it explicitlyElijah Newren1-0/+1
2023-01-09use DUP_ARRAYRené Scharfe1-2/+1
2022-09-21Merge branch 'ml/commit-graph-expire-dir-leak-fix'Junio C Hamano1-0/+2
2022-09-19commit-graph: Fix missing closedir in expire_commit_graphsMiaoqian Lin1-0/+2
2022-09-14Merge branch 'ab/unused-annotation'Junio C Hamano1-2/+2
2022-09-14Merge branch 'jk/unused-annotation'Junio C Hamano1-2/+2
2022-09-13Merge branch 'jk/rev-list-verify-objects-fix'Junio C Hamano1-1/+1
2022-09-07lookup_commit_in_graph(): use prepare_commit_graph() to check for graphJeff King1-1/+1
2022-09-01git-compat-util.h: use "UNUSED", not "UNUSED(var)"Ævar Arnfjörð Bjarmason1-2/+2
2022-08-19refs: mark unused each_ref_fn parametersJeff King1-2/+2
2022-08-10Merge branch 'tb/commit-graph-genv2-upgrade-fix' into maintJunio C Hamano1-3/+9
2022-08-10Merge branch 'hx/lookup-commit-in-graph-fix' into maintJunio C Hamano1-1/+1
2022-08-03Merge branch 'tb/commit-graph-genv2-upgrade-fix'Junio C Hamano1-3/+9
2022-07-27Merge branch 'js/commit-graph-parsing-without-repo-settings'Junio C Hamano1-6/+5
2022-07-19Merge branch 'hx/lookup-commit-in-graph-fix'Junio C Hamano1-1/+1
2022-07-15commit-graph: introduce `repo_find_commit_pos_in_graph()`Taylor Blau1-3/+9
2022-07-14commit-graph: pass repo_settings instead of repositoryTaylor Blau1-6/+5
2022-06-30commit-graph.c: no lazy fetch in lookup_commit_in_graph()Han Xin1-1/+1
2022-06-03Merge branch 'tb/cruft-packs'Junio C Hamano1-15/+3
2022-05-26chunk-format.h: extract oid_version()Taylor Blau1-15/+3
2022-05-23Merge branch 'ab/valgrind-fixes'Junio C Hamano1-2/+4
2022-05-20Merge branch 'ep/maint-equals-null-cocci'Junio C Hamano1-2/+2
2022-05-12commit-graph.c: don't assume that stat() succeedsÆvar Arnfjörð Bjarmason1-2/+4
2022-05-02Merge branch 'ep/maint-equals-null-cocci' for maint-2.35Junio C Hamano1-2/+2
2022-05-02tree-wide: apply equals-null.cocciJunio C Hamano1-2/+2
2022-04-20commit-graph: close file before returning NULLKleber Tarcísio1-3/+6
2022-03-25Merge branch 'ns/core-fsyncmethod'Junio C Hamano1-1/+2
2022-03-16Merge branch 'ab/string-list-count-in-size-t'Junio C Hamano1-3/+3
2022-03-16Merge branch 'ds/commit-graph-gen-v2-fixes'Junio C Hamano1-6/+13
2022-03-10core.fsync: introduce granular fsync control infrastructureNeeraj Singh1-1/+2
2022-03-07string-list API: change "nr" and "alloc" to "size_t"Ævar Arnfjörð Bjarmason1-3/+3
2022-03-07commit-graph: declare bankruptcy on GDAT chunksDerrick Stolee1-2/+2
2022-03-04lockfile API users: simplify and don't leak "path"Ævar Arnfjörð Bjarmason1-0/+2
2022-03-04commit-graph: stop fill_oids_from_packs() progress on error and free()Ævar Arnfjörð Bjarmason1-5/+7
2022-03-04commit-graph: fix memory leak in misused string_list APIÆvar Arnfjörð Bjarmason1-2/+2
2022-03-01commit-graph: fix generation number v2 overflow valuesDerrick Stolee1-1/+1
2022-03-01commit-graph: start parsing generation v2 (again)Derrick Stolee1-0/+3
2022-03-01commit-graph: fix ordering bug in generation numbersDerrick Stolee1-3/+7
2021-12-06commit-graph: return if there is no git directoryLessley Dennington1-1/+4
2021-09-20Merge branch 'js/run-command-close-packs'Junio C Hamano1-0/+1
2021-09-20Merge branch 'ab/progress-users-adjust-counters'Junio C Hamano1-1/+1
2021-09-09commit-graph: fix bogus counter in "Scanning merged commits" progress lineSZEDER Gábor1-1/+1
2021-09-08commit-graph: when closing the graph, also release the slabJohannes Schindelin1-0/+1
2021-08-09revision: avoid hitting packfiles when commits are in commit-graphPatrick Steinhardt1-0/+24
2021-08-09commit-graph: split out function to search commit positionPatrick Steinhardt1-25/+30
2021-07-28Merge branch 'ab/attribute-format'Junio C Hamano1-0/+1
2021-07-13*.c static functions: add missing __attribute__((format))Ævar Arnfjörð Bjarmason1-0/+1
2021-06-28commit-graph: rewrite to use checksum_valid()Taylor Blau1-8/+6
2021-04-27commit-graph: don't store file hashes as struct object_idbrian m. carlson1-6/+7
2021-04-27Always use oidread to read into struct object_idbrian m. carlson1-6/+6
2021-03-22Merge branch 'ds/commit-graph-generation-config'Junio C Hamano1-11/+20
2021-03-13use CALLOC_ARRAYRené Scharfe1-2/+2
2021-03-01Merge branch 'ds/chunked-file-api'Junio C Hamano1-200/+112
2021-03-01Merge branch 'js/commit-graph-warning'Junio C Hamano1-11/+3
2021-03-01Revert "commit-graph: when incompatible with graphs, indicate why"Junio C Hamano1-11/+3
2021-02-25commit-graph: use config to specify generation typeDerrick Stolee1-7/+15
2021-02-25commit-graph: create local repository pointerDerrick Stolee1-4/+5
2021-02-24commit-graph.c: display correct number of chunks when writingTaylor Blau1-4/+3
2021-02-22commit-graph: avoid leaking topo_levels slab in write_commit_graph()Andrzej Hunt1-0/+1
2021-02-18commit-graph: use chunk-format read APIDerrick Stolee1-105/+54
2021-02-18commit-graph: use chunk-format write APIDerrick Stolee1-82/+37
2021-02-17Merge branch 'js/commit-graph-warning'Junio C Hamano1-3/+11
2021-02-17Merge branch 'ds/commit-graph-genno-fix'Junio C Hamano1-37/+101
2021-02-17Merge branch 'ak/corrected-commit-date'Junio C Hamano1-47/+204
2021-02-11commit-graph: when incompatible with graphs, indicate whyJohannes Schindelin1-3/+11
2021-02-10Merge branch 'jk/use-oid-pos'Junio C Hamano1-15/+15
2021-02-05commit-graph: anonymize data in chunk_write_fnDerrick Stolee1-10/+19
2021-02-03Merge branch 'jk/peel-iterated-oid'Junio C Hamano1-1/+1
2021-02-01commit-graph: prepare commit graphDerrick Stolee1-8/+2
2021-02-01commit-graph: be extra careful about mixed generationsDerrick Stolee1-2/+12
2021-02-01commit-graph: compute generations separatelyDerrick Stolee1-14/+56
2021-02-01commit-graph: validate layers for generation dataDerrick Stolee1-6/+16
2021-02-01commit-graph: always parse before commit_graph_data_at()Derrick Stolee1-4/+12
2021-02-01commit-graph: use repo_parse_commitDerrick Stolee1-5/+5
2021-01-28oid_pos(): access table through const pointersJeff King1-2/+2
2021-01-28hash_pos(): convert to oid_pos()Jeff King1-14/+14
2021-01-25Merge branch 'ma/more-opaque-lock-file'Junio C Hamano1-3/+3
2021-01-21refs: switch peel_ref() to peel_iterated_oid()Jeff King1-1/+1
2021-01-18commit-reach: use corrected commit dates in paint_down_to_common()Abhishek Kumar1-0/+14
2021-01-18commit-graph: use generation v2 only if entire chain doesAbhishek Kumar1-2/+28
2021-01-18commit-graph: implement generation data chunkAbhishek Kumar1-11/+103
2021-01-18commit-graph: implement corrected commit dateAbhishek Kumar1-4/+17
2021-01-18commit-graph: return 64-bit generation numberAbhishek Kumar1-11/+11
2021-01-18commit-graph: add a slab to store topological levelsAbhishek Kumar1-15/+30
2021-01-18commit-graph: consolidate fill_commit_graph_infoAbhishek Kumar1-17/+10
2021-01-18commit-graph: fix regression when computing Bloom filtersAbhishek Kumar1-2/+6
2021-01-06commit-graph: don't peek into `struct lock_file`Martin Ågren1-3/+3
2021-01-04hash-lookup: rename from sha1-lookupMartin Ågren1-1/+1
2021-01-04sha1-lookup: rename `sha1_pos()` as `hash_pos()`Martin Ågren1-3/+3
2020-12-07commit-graph: use size_t for array allocation and indexingJeff King1-2/+2
2020-12-07commit-graph: replace packed_oid_list with oid_arrayJeff King1-47/+15
2020-12-07commit-graph: drop count_distinct_commits() functionJeff King1-41/+2
2020-11-02Merge branch 'ds/commit-graph-merging-fix'Junio C Hamano1-3/+18
2020-10-09commit-graph: don't write commit-graph when disabledDerrick Stolee1-0/+5
2020-10-09commit-graph: ignore duplicates when merging layersDerrick Stolee1-3/+13
2020-09-29Merge branch 'tb/bloom-improvements'Junio C Hamano1-42/+99
2020-09-25Merge branch 'ds/maintenance-part-1'Junio C Hamano1-4/+4
2020-09-18builtin/commit-graph.c: introduce '--max-new-filters=<n>'Taylor Blau1-2/+7
2020-09-17commit-graph: rename 'split_commit_graph_opts'Taylor Blau1-20/+20
2020-09-17bloom: encode out-of-bounds filters as non-emptyTaylor Blau1-0/+5
2020-09-17maintenance: add commit-graph taskDerrick Stolee1-4/+4
2020-09-17bloom: use provided 'struct bloom_filter_settings'Taylor Blau1-11/+10
2020-09-17bloom: split 'get_bloom_filter()' in twoTaylor Blau1-3/+31
2020-09-17commit-graph.c: store maximum changed pathsTaylor Blau1-0/+4
2020-09-09commit-graph: respect 'commitGraph.readChangedPaths'Taylor Blau1-2/+4
2020-09-09commit-graph: pass a 'struct repository *' in more placesTaylor Blau1-7/+10
2020-09-09commit-graph: introduce 'get_bloom_filter_settings()'Taylor Blau1-0/+11