aboutsummaryrefslogtreecommitdiffstats
path: root/object-file.c
AgeCommit message (Expand)AuthorFilesLines
2 daysMerge branch 'ps/object-read-stream'Junio C Hamano1-18/+165
2025-11-24Merge branch 'ps/object-source-loose'Junio C Hamano1-97/+78
2025-11-24Merge branch 'bc/submodule-force-same-hash'Junio C Hamano1-1/+5
2025-11-23streaming: drop redundant type and size pointersPatrick Steinhardt1-4/+2
2025-11-23streaming: move into object database subsystemPatrick Steinhardt1-1/+1
2025-11-23streaming: refactor interface to be object-database-centricPatrick Steinhardt1-4/+4
2025-11-23streaming: move logic to read loose objects streams into backendPatrick Steinhardt1-9/+158
2025-11-23streaming: rename `git_istream` into `odb_read_stream`Patrick Steinhardt1-1/+1
2025-11-15read-cache: drop submodule check from add_to_cache()Jeff King1-1/+1
2025-11-15object-file: disallow adding submodules of different hash algobrian m. carlson1-1/+5
2025-11-03object-file: refactor writing objects via a streamPatrick Steinhardt1-3/+3
2025-11-03object-file: rename `write_object_file()`Patrick Steinhardt1-4/+4
2025-11-03object-file: refactor freshening of objectsPatrick Steinhardt1-28/+5
2025-11-03object-file: rename `has_loose_object()`Patrick Steinhardt1-3/+3
2025-11-03object-file: read objects via the loose object sourcePatrick Steinhardt1-43/+25
2025-11-03object-file: move loose object map into loose sourcePatrick Steinhardt1-0/+1
2025-11-03object-file: hide internals when we need to reprepare loose sourcesPatrick Steinhardt1-6/+11
2025-11-03object-file: move loose object cache into loose sourcePatrick Steinhardt1-16/+19
2025-11-03object-file: introduce `struct odb_source_loose`Patrick Steinhardt1-0/+13
2025-10-07Merge branch 'ps/packfile-store'Junio C Hamano1-1/+1
2025-09-16odb: add transaction interfaceJustin Tobler1-5/+7
2025-09-16object-file: update naming from bulk-checkinJustin Tobler1-44/+36
2025-09-16object-file: relocate ODB transaction codeJustin Tobler1-1/+393
2025-09-16bulk-checkin: remove ODB transaction nestingJustin Tobler1-1/+1
2025-08-25bulk-checkin: require transaction for index_blob_bulk_checkin()Justin Tobler1-7/+14
2025-08-25bulk-checkin: remove global transaction stateJustin Tobler1-5/+6
2025-07-16object-file: get rid of `the_repository` in index-related functionsPatrick Steinhardt1-3/+3
2025-07-16object-file: get rid of `the_repository` in `force_object_loose()`Patrick Steinhardt1-9/+9
2025-07-16object-file: get rid of `the_repository` in `read_loose_object()`Patrick Steinhardt1-4/+5
2025-07-16object-file: get rid of `the_repository` in loose object iteratorsPatrick Steinhardt1-9/+9
2025-07-16object-file: remove declaration for `for_each_file_in_obj_subdir()`Patrick Steinhardt1-7/+7
2025-07-16object-file: inline `for_each_loose_file_in_objdir_buf()`Patrick Steinhardt1-23/+8
2025-07-16object-file: get rid of `the_repository` when writing objectsPatrick Steinhardt1-46/+50
2025-07-16odb: introduce `odb_write_object()`Patrick Steinhardt1-9/+9
2025-07-16loose: write loose objects map via their sourcePatrick Steinhardt1-3/+3
2025-07-16object-file: get rid of `the_repository` in `finalize_object_file()`Patrick Steinhardt1-6/+8
2025-07-16object-file: get rid of `the_repository` in `loose_object_info()`Patrick Steinhardt1-1/+1
2025-07-16object-file: get rid of `the_repository` when freshening objectsPatrick Steinhardt1-11/+11
2025-07-16object-file: inline `check_and_freshen()` functionsPatrick Steinhardt1-28/+13
2025-07-16object-file: get rid of `the_repository` in `has_loose_object()`Patrick Steinhardt1-9/+7
2025-07-16object-file: stop using `the_hash_algo`Patrick Steinhardt1-16/+24
2025-07-16object-file: fix -Wsign-compare warningsPatrick Steinhardt1-9/+6
2025-07-01odb: rename `oid_object_info()`Patrick Steinhardt1-1/+1
2025-07-01odb: get rid of `the_repository` when handling alternatesPatrick Steinhardt1-5/+5
2025-07-01object-store: rename files to "odb.{c,h}"Patrick Steinhardt1-1/+1
2025-07-01object-store: rename `object_directory` to `odb_source`Patrick Steinhardt1-40/+40
2025-05-16object-file: drop support for writing objects with unknown typesJeff King1-76/+5
2025-05-16oid_object_info(): drop type_name strbufJeff King1-3/+1
2025-05-16fsck: stop using object_info->type_name strbufJeff King1-3/+9
2025-05-16object-file: drop OBJECT_INFO_ALLOW_UNKNOWN_TYPE flagJeff King1-38/+7
2025-04-29object-store: drop `loose_object_path()`Patrick Steinhardt1-2/+2
2025-04-24Merge branch 'ps/object-file-cleanup' into ps/object-store-cleanupJunio C Hamano1-1193/+27
2025-04-15Merge branch 'ps/object-wo-the-repository'Junio C Hamano1-283/+9
2025-04-15Merge branch 'jk/zlib-inflate-fixes'Junio C Hamano1-25/+23
2025-04-15object-store: merge "object-store-ll.h" and "object-store.h"Patrick Steinhardt1-0/+1
2025-04-15object-file: drop `index_blob_stream()`Patrick Steinhardt1-24/+2
2025-04-15object-file: split up concerns of `HASH_*` flagsPatrick Steinhardt1-9/+9
2025-04-15object-file: split out functions relating to object store subsystemPatrick Steinhardt1-977/+13
2025-04-15object-file: move `xmmap()` into "wrapper.c"Patrick Steinhardt1-48/+0
2025-04-15object-file: move `git_open_cloexec()` to "compat/open.c"Patrick Steinhardt1-27/+0
2025-04-15object-file: move `safe_create_leading_directories()` into "path.c"Patrick Steinhardt1-79/+2
2025-04-15object-file: move `mkdir_in_gitdir()` into "path.c"Patrick Steinhardt1-31/+2
2025-03-21treewide: replace assert() with ASSERT() in special casesElijah Newren1-1/+1
2025-03-10hash: stop depending on `the_repository` in `null_oid()`Patrick Steinhardt1-1/+1
2025-03-10object-file: split out logic regarding hash algorithmsPatrick Steinhardt1-277/+0
2025-03-10object-file-convert: stop depending on `the_repository`Patrick Steinhardt1-3/+4
2025-03-10environment: move access to "core.bigFileThreshold" into repo settingsPatrick Steinhardt1-2/+4
2025-03-05Merge branch 'ps/path-sans-the-repository'Junio C Hamano1-7/+7
2025-02-28path: adjust last remaining users of `the_repository`Patrick Steinhardt1-4/+4
2025-02-25unpack_loose_rest(): rewrite return handling for clarityJeff King1-6/+6
2025-02-25unpack_loose_rest(): simplify error handlingJeff King1-3/+3
2025-02-25unpack_loose_rest(): never clean up zstreamJeff King1-10/+8
2025-02-25unpack_loose_rest(): avoid numeric comparison of zlib statusJeff King1-1/+1
2025-02-25unpack_loose_header(): avoid numeric comparison of zlib statusJeff King1-1/+1
2025-02-25unpack_loose_header(): fix infinite loop on broken zlib inputJeff King1-1/+1
2025-02-25unpack_loose_header(): report headers without NUL as "bad"Jeff King1-1/+1
2025-02-25unpack_loose_header(): simplify next_out assignmentJeff King1-4/+3
2025-02-25loose_object_info(): BUG() on inflating content with unknown typeJeff King1-0/+2
2025-02-07path: drop `git_path_buf()` in favor of `repo_git_path_replace()`Patrick Steinhardt1-2/+2
2025-02-07path: drop `git_pathdup()` in favor of `repo_git_path()`Patrick Steinhardt1-1/+1
2025-02-03Merge branch 'tb/unsafe-hash-cleanup'Junio C Hamano1-15/+26
2025-01-31global: adapt callers to use generic hash context helpersPatrick Steinhardt1-17/+15
2025-01-31hash: provide generic wrappers to update hash contextsPatrick Steinhardt1-0/+6
2025-01-31hash: stop typedeffing the hash contextPatrick Steinhardt1-31/+31
2025-01-31hash: convert hashing context to a structurePatrick Steinhardt1-15/+15
2025-01-31Merge branch 'tb/unsafe-hash-cleanup' into ps/hash-cleanupJunio C Hamano1-15/+26
2025-01-23hash.h: drop unsafe_ function variantsTaylor Blau1-15/+0
2025-01-23hash.h: introduce `unsafe_hash_algo()`Taylor Blau1-0/+26
2025-01-16Merge branch 'ps/object-collision-check'Junio C Hamano1-24/+42
2025-01-06object-file: retry linking file into place when occluding file vanishesPatrick Steinhardt1-4/+21
2025-01-06object-file: don't special-case missing source file in collision checkPatrick Steinhardt1-2/+1
2025-01-06object-file: rename variables in `check_collision()`Patrick Steinhardt1-20/+20
2024-12-30object-file: fix race in object collision checkPatrick Steinhardt1-2/+4
2024-12-06global: mark code units that generate warnings with `-Wsign-compare`Patrick Steinhardt1-0/+1
2024-11-18object-file: inline empty tree and blob literalsJeff King1-27/+20
2024-11-18object-file: treat cached_object values as constJeff King1-4/+4
2024-11-18object-file: drop oid field from find_cached_object() return valueJeff King1-11/+12
2024-11-18object-file: move empty_tree struct into find_cached_object()Jeff King1-6/+5
2024-11-18object-file: drop confusing oid initializer of empty_tree structJeff King1-3/+1
2024-11-18object-file: prefer array-of-bytes initializer for hash literalsJeff King1-17/+21
2024-10-02Merge branch 'tb/weak-sha1-for-tail-sum'Junio C Hamano1-6/+118
2024-09-27hash.h: scaffolding for _unsafe hashing variantsTaylor Blau1-0/+42
2024-09-27finalize_object_file(): implement collision checkTaylor Blau1-3/+64
2024-09-27finalize_object_file(): refactor unlink_or_warn() placementTaylor Blau1-1/+6
2024-09-27finalize_object_file(): check for name collision before renamingTaylor Blau1-2/+6
2024-09-25Merge branch 'ak/typofix-2.46-maint'Junio C Hamano1-1/+1
2024-09-19object-file: fix a typoAndrew Kreimer1-1/+1
2024-09-12environment: move object database functions into object layerPatrick Steinhardt1-0/+33
2024-09-12environment: make `get_object_directory()` accept a repositoryPatrick Steinhardt1-2/+2
2024-08-23Merge branch 'ps/leakfixes-part-4'Junio C Hamano1-0/+1
2024-08-14object-file: fix memory leak when reading corrupted headersPatrick Steinhardt1-0/+1
2024-08-08fsck: make "fsck_error" callback genericshejialuo1-5/+4
2024-07-02Merge branch 'ew/object-convert-leakfix'Junio C Hamano1-1/+1
2024-07-02Merge branch 'ps/use-the-repository'Junio C Hamano1-10/+9
2024-06-24object-file: fix leak on conversion failureEric Wong1-1/+1
2024-06-17Merge branch 'ps/no-writable-strings'Junio C Hamano1-10/+12
2024-06-14global: introduce `USE_THE_REPOSITORY_VARIABLE` macroPatrick Steinhardt1-0/+3
2024-06-14hash: require hash algorithm in `empty_tree_oid_hex()`Patrick Steinhardt1-8/+2
2024-06-14global: ensure that object IDs are always paddedPatrick Steinhardt1-0/+2
2024-06-14hash: require hash algorithm in `oidread()` and `oidclr()`Patrick Steinhardt1-2/+2
2024-06-07object-file: make `buf` parameter of `index_mem()` a constantPatrick Steinhardt1-7/+7
2024-06-07object-file: mark cached object buffers as constPatrick Steinhardt1-3/+5
2024-05-17refs: refactor `resolve_gitlink_ref()` to accept a repositoryPatrick Steinhardt1-1/+1
2024-03-28Merge branch 'eb/hash-transition'Junio C Hamano1-20/+192
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-8/+0
2023-10-02object-file: handle compat objects in check_object_signatureEric W. Biederman1-1/+3
2023-10-02object-file: update object_info_extended to reencode objectsEric W. Biederman1-0/+91
2023-10-02object-file: add a compat_oid_in parameter to write_object_file_flagsEric W. Biederman1-2/+4
2023-10-02object-file: update the loose object map when writing loose objectsEric W. Biederman1-18/+95
2023-09-26bulk-checkin: only support blobs in index_bulk_checkinEric W. Biederman1-6/+6
2023-07-25Merge branch 'jk/unused-parameter'Junio C Hamano1-5/+5
2023-07-13fsck: mark unused parameters in various fsck callbacksJeff King1-5/+5
2023-07-05git-compat-util: move alloc macros to git-compat-util.hCalvin Wan1-1/+0
2023-07-05treewide: remove unnecessary includes for wrapper.hCalvin Wan1-1/+0
2023-06-21repository: remove unnecessary include of path.hElijah Newren1-0/+1
2023-05-09Merge branch 'en/header-split-cache-h-part-2'Junio C Hamano1-1/+2
2023-04-25Merge branch 'ps/fix-geom-repack-with-alternates'Junio C Hamano1-0/+6
2023-04-24object-store.h: reduce unnecessary includesElijah Newren1-0/+1
2023-04-24treewide: remove cache.h inclusion due to previous changesElijah Newren1-1/+1
2023-04-14repack: disable writing bitmaps when doing a local repackPatrick Steinhardt1-0/+6
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 convert.hElijah Newren1-0/+1
2023-04-04Merge branch 'ab/remove-implicit-use-of-the-repository' into en/header-split-...Junio C Hamano1-2/+2
2023-03-28post-cocci: adjust comments for recent repo_* migrationÆvar Arnfjörð Bjarmason1-1/+1
2023-03-28cocci: apply the "object-store.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-1/+1
2023-03-21csum-file.h: remove unnecessary inclusion of cache.hElijah Newren1-1/+1
2023-03-21setup.h: move declarations for setup.c functions from cache.hElijah Newren1-0/+1
2023-03-21environment.h: move declarations for environment.c functions from cache.hElijah Newren1-0/+1
2023-03-21wrapper.h: move declarations for wrapper.c functions from cache.hElijah Newren1-0/+1
2023-03-21abspath.h: move absolute path functions from cache.hElijah Newren1-0/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2023-03-17Merge branch 'jk/unused-post-2.39-part2'Junio C Hamano1-1/+2
2023-02-24for_each_object: mark unused callback parametersJeff King1-1/+2
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-01-30Merge branch 'jk/hash-object-fsck'Junio C Hamano1-32/+23
2023-01-18hash-object: use fsck for object checksJeff King1-32/+23
2023-01-13object-file: fix indent-with-spaceJeff King1-1/+1
2023-01-08repo_read_object_file(): stop wrapping read_object_file_extended()Jeff King1-4/+4
2023-01-08read_object_file_extended(): drop lookup_replace optionJeff King1-5/+2
2023-01-08object-file: inline calls to read_object()Jeff King1-28/+17
2023-01-05Merge branch 'jt/avoid-lazy-fetch-commits'Junio C Hamano1-56/+52
2022-12-15object-file: emit corruption errors when detectedJonathan Tan1-27/+28
2022-12-15object-file: refactor map_loose_object_1()Jonathan Tan1-26/+24
2022-12-15object-file: remove OBJECT_INFO_IGNORE_LOOSEJonathan Tan1-3/+0
2022-12-14object-file: inline write_buffer()René Scharfe1-9/+2
2022-11-25object-file: use real paths when adding alternatesGlen Choo1-13/+13
2022-10-27Merge branch 'jk/unused-anno-more'Junio C Hamano1-5/+10
2022-10-17object-file: mark unused parameters in hash_unknown functionsJeff King1-5/+10
2022-10-17Merge branch 'jt/promisor-remote-fetch-tweak'Junio C Hamano1-4/+0
2022-10-05promisor-remote: die upon failing fetchJonathan Tan1-4/+0
2022-07-14Merge branch 'hx/unpack-streaming'Junio C Hamano1-30/+203
2022-06-13object-file.c: add "stream_loose_object()" to handle large objectHan Xin1-0/+104
2022-06-13object-file.c: factor out deflate part of write_loose_object()Ævar Arnfjörð Bjarmason1-6/+25
2022-06-13object-file.c: refactor write_loose_object() to several stepsHan Xin1-24/+74
2022-06-10Merge branch 'ab/env-array'Junio C Hamano1-1/+1
2022-06-03Merge branch 'tb/cruft-packs'Junio C Hamano1-1/+3
2022-06-03Merge branch 'ds/object-file-unpack-loose-header-fix'Junio C Hamano1-6/+2
2022-06-03Merge branch 'ns/batch-fsync'Junio C Hamano1-1/+6
2022-06-02run-command API: rename "env_array" to "env"Ævar Arnfjörð Bjarmason1-1/+1
2022-05-26sha1-file.c: don't freshen cruft packsTaylor Blau1-0/+2
2022-05-26builtin/pack-objects.c: --cruft without expirationTaylor Blau1-1/+1
2022-05-23Merge branch 'ab/valgrind-fixes'Junio C Hamano1-2/+6
2022-05-20Merge branch 'ep/maint-equals-null-cocci'Junio C Hamano1-1/+1
2022-05-16object-file: convert 'switch' back to 'if'Derrick Stolee1-6/+2
2022-05-12object-file: fix a unpack_loose_header() regression in 3b6a8db3b03Ævar Arnfjörð Bjarmason1-2/+6
2022-05-02Merge branch 'ep/maint-equals-null-cocci' for maint-2.35Junio C Hamano1-1/+1
2022-05-02tree-wide: apply equals-null.cocciJunio C Hamano1-1/+1
2022-04-06core.fsyncmethod: batched disk flushes for loose-objectsNeeraj Singh1-1/+6
2022-03-30object-file: pass filename to fsync_or_dieNeeraj Singh1-4/+4
2022-03-29Merge branch 'ab/refs-various-fixes'Junio C Hamano1-4/+5
2022-03-25Merge branch 'ns/core-fsyncmethod'Junio C Hamano1-4/+9
2022-03-17misc *.c: use designated initializers for struct assignmentsÆvar Arnfjörð Bjarmason1-4/+5
2022-03-16Merge branch 'ab/object-file-api-updates'Junio C Hamano1-52/+93
2022-03-10core.fsync: introduce granular fsync control infrastructureNeeraj Singh1-4/+9
2022-02-25object-file API: pass an enum to read_object_with_reference()Ævar Arnfjörð Bjarmason1-3/+2
2022-02-25object-file.c: add a literal version of write_object_file_prepare()Ævar Arnfjörð Bjarmason1-10/+29
2022-02-25object-file API: have hash_object_file() take "enum object_type"Ævar Arnfjörð Bjarmason1-14/+21
2022-02-25object API: rename hash_object_file_literally() to write_*()Ævar Arnfjörð Bjarmason1-3/+3
2022-02-25object-file API: split up and simplify check_object_signature()Ævar Arnfjörð Bjarmason1-14/+18