aboutsummaryrefslogtreecommitdiffstats
path: root/refs
AgeCommit message (Expand)AuthorFilesLines
4 hoursMerge branch 'ps/ref-storage-migration' into seenJunio C Hamano5-15/+187
5 hoursMerge branch 'kn/update-ref-symref' into seenJunio C Hamano3-5/+11
5 hoursMerge branch 'ps/refs-without-the-repository-updates' into jchJunio C Hamano8-111/+141
5 hoursMerge branch 'ps/reftable-reusable-iterator' into jchJunio C Hamano1-27/+21
5 hoursMerge branch 'ps/reftable-write-options' into jchJunio C Hamano1-4/+45
5 hoursrefs: implement removal of ref storagesPatrick Steinhardt4-0/+137
5 hoursrefs/files: fix NULL pointer deref when releasing ref storePatrick Steinhardt1-0/+2
5 hoursrefs/files: extract function to iterate through root refsPatrick Steinhardt1-9/+40
5 hoursrefs/files: refactor `add_pseudoref_and_head_entries()`Patrick Steinhardt1-9/+6
5 hoursrefs: allow to skip creation of reflog entriesPatrick Steinhardt2-1/+6
5 hoursMerge branch 'ps/pseudo-ref-terminology'Junio C Hamano2-4/+2
5 daysMerge branch 'it/refs-name-conflict'Junio C Hamano1-1/+3
5 daysreftable: pick either 'oid' or 'target' for new updatesKarthik Nayak1-2/+3
5 daysrefs: create and use `ref_update_ref_must_exist()`Karthik Nayak3-3/+8
5 daysMerge branch 'kn/ref-transaction-symref' into kn/update-ref-symrefJunio C Hamano5-236/+209
5 daysMerge branch 'ps/pseudo-ref-terminology' into ps/ref-storage-migrationJunio C Hamano2-4/+2
5 daysMerge branch 'ps/refs-without-the-repository-updates' into ps/ref-storage-mig...Junio C Hamano8-111/+141
8 daysMerge branch 'kn/ref-transaction-symref'Junio C Hamano5-255/+209
11 daysrefs/packed: remove references to `the_hash_algo`Patrick Steinhardt1-12/+20
11 daysrefs/files: remove references to `the_hash_algo`Patrick Steinhardt1-2/+2
11 daysrefs/files: use correct repositoryPatrick Steinhardt1-10/+13
11 daysrefs: pass repo when peeling objectsPatrick Steinhardt3-11/+8
11 daysrefs: move object peeling into "object.c"Patrick Steinhardt1-34/+0
11 daysrefs: convert iteration over replace refs to accept ref storePatrick Steinhardt2-6/+5
11 daysrefs: pass repo when retrieving submodule ref storePatrick Steinhardt1-1/+1
11 daysrefs: implement releasing ref storagesPatrick Steinhardt5-0/+57
11 daysrefs: rename `init_db` callback to avoid confusionPatrick Steinhardt5-23/+23
11 daysrefs: adjust names for `init` and `init_db` callbacksPatrick Steinhardt3-16/+16
13 daysrefs: classify HEAD as a root refPatrick Steinhardt2-4/+2
13 daysrefs: do not check ref existence in `is_root_ref()`Patrick Steinhardt2-3/+3
13 daysrefs: rename `is_pseudoref()` to `is_root_ref()`Patrick Steinhardt2-2/+2
2024-05-13reftable/stack: provide convenience functions to create iteratorsPatrick Steinhardt1-27/+21
2024-05-13refs/reftable: allow configuring geometric factorPatrick Steinhardt1-0/+5
2024-05-13refs/reftable: allow disabling writing the object indexPatrick Steinhardt1-0/+2
2024-05-13refs/reftable: allow configuring restart intervalPatrick Steinhardt1-0/+5
2024-05-13refs/reftable: allow configuring block sizePatrick Steinhardt1-1/+30
2024-05-13reftable: pass opts as constant pointerPatrick Steinhardt1-3/+3
2024-05-08Merge branch 'ps/reftable-write-optim'Junio C Hamano1-22/+53
2024-05-07refs: remove `create_symref` and associated dead codeKarthik Nayak5-172/+0
2024-05-07refs: add support for transactional symref updatesKarthik Nayak3-38/+162
2024-05-07refs: move `original_update_refname` to 'refs.c'Karthik Nayak3-33/+17
2024-05-07files-backend: extract out `create_symref_lock()`Karthik Nayak1-14/+37
2024-05-07refs: accept symref values in `ref_transaction_update()`Karthik Nayak3-8/+22
2024-05-06refs: return conflict error when checking packed refsIvan Tse1-1/+3
2024-04-09Merge branch 'ps/pack-refs-auto'Junio C Hamano1-2/+9
2024-04-08refs/reftable: don't recompute committer identPatrick Steinhardt1-18/+34
2024-04-08reftable: remove name checksPatrick Steinhardt1-5/+0
2024-04-08refs/reftable: skip duplicate name checksPatrick Steinhardt1-0/+5
2024-04-08refs/reftable: perform explicit D/F check when writing symrefsPatrick Steinhardt1-3/+17
2024-04-08refs/reftable: fix D/F conflict error message on ref copyPatrick Steinhardt1-1/+2
2024-04-08reftable/stack: add env to disable autocompactionJustin Tobler1-0/+3
2024-04-05Merge branch 'ps/pack-refs-auto' into jt/reftable-geometric-compactionJunio C Hamano1-2/+9
2024-03-25refs/reftable: expose auto compaction via new flagPatrick Steinhardt1-1/+4
2024-03-25refs/reftable: print errors on compaction failurePatrick Steinhardt1-1/+5
2024-03-21Merge branch 'ps/reftable-reflog-iteration-perf'Junio C Hamano1-36/+16
2024-03-14Merge branch 'ps/reftable-iteration-perf-part2'Junio C Hamano1-2/+4
2024-03-07Merge branch 'ps/reftable-repo-init-fix'Junio C Hamano1-0/+1
2024-03-05Merge branch 'kn/for-all-refs'Junio C Hamano3-38/+106
2024-03-05refs/reftable: track last log record name via strbufPatrick Steinhardt1-5/+6
2024-03-05reftable/record: convert old and new object IDs to arraysPatrick Steinhardt1-30/+9
2024-03-05refs/reftable: reload correct stack when creating reflog iterPatrick Steinhardt1-1/+1
2024-03-05Merge branch 'ps/reftable-iteration-perf-part2' into ps/reftable-reflog-itera...Junio C Hamano1-2/+4
2024-03-04refs/reftable: precompute prefix lengthPatrick Steinhardt1-2/+4
2024-02-27refs/reftable: don't fail empty transactions in repo without HEADPatrick Steinhardt1-0/+1
2024-02-23for-each-ref: add new option to include root refsKarthik Nayak1-4/+7
2024-02-23refs: introduce `refs_for_each_include_root_refs()`Karthik Nayak2-5/+66
2024-02-23refs: extract out `loose_fill_ref_dir_regular_file()`Karthik Nayak1-29/+33
2024-02-21refs: stop resolving ref corresponding to reflogsPatrick Steinhardt2-14/+4
2024-02-21refs: drop unused params from the reflog iterator callbackPatrick Steinhardt2-14/+2
2024-02-21refs: always treat iterators as orderedPatrick Steinhardt7-46/+20
2024-02-21refs/files: sort merged worktree and common reflogsPatrick Steinhardt4-73/+56
2024-02-21refs/files: sort reflogs returned by the reflog iteratorPatrick Steinhardt1-2/+2
2024-02-07refs/reftable: fix leak when copying reflog failsPatrick Steinhardt1-1/+1
2024-02-07refs: introduce reftable backendPatrick Steinhardt2-0/+2298
2024-01-26Merge branch 'ps/worktree-refdb-initialization'Junio C Hamano4-9/+37
2024-01-16Merge branch 'ps/refstorage-extension'Junio C Hamano4-4/+0
2024-01-08Merge branch 'en/header-cleanup'Junio C Hamano3-4/+0
2024-01-08refs/files: skip creation of "refs/{heads,tags}" for worktreesPatrick Steinhardt1-8/+14
2024-01-08setup: move creation of "refs/" into the files backendPatrick Steinhardt1-0/+17
2024-01-08refs: prepare `refs_init_db()` for initializing worktree refsPatrick Steinhardt4-4/+9
2024-01-02refs: refactor logic to look up storage backendsPatrick Steinhardt4-4/+0
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren3-4/+0
2023-11-17refs: remove `delete_refs` callback from backendsPatrick Steinhardt4-32/+0
2023-11-17refs: deduplicate code to delete referencesPatrick Steinhardt2-89/+2
2023-11-17refs/files: use transactions to delete referencesPatrick Steinhardt1-32/+34
2023-10-09files-backend.c: avoid stat in 'loose_fill_ref_dir'Victoria Dye1-9/+5
2023-10-09ref-cache.c: fix prefix matching in ref iterationVictoria Dye1-1/+2
2023-07-21Merge branch 'tb/refs-exclusion-and-packed-refs'Junio C Hamano4-29/+192
2023-07-10refs/packed-backend.c: add trace2 counters for jump listTaylor Blau1-0/+2
2023-07-10refs/packed-backend.c: implement jump lists to avoid excluded pattern(s)Taylor Blau1-6/+157
2023-07-10refs/packed-backend.c: refactor `find_reference_location()`Taylor Blau1-16/+22
2023-07-10refs: plumb `exclude_patterns` argument throughoutTaylor Blau4-9/+13
2023-06-21repository: remove unnecessary include of path.hElijah Newren1-0/+1
2023-06-21cache.h: remove this no-longer-used headerElijah Newren2-2/+2
2023-06-21statinfo: move stat_{data,validity} functions from cache/read-cacheElijah Newren1-0/+1
2023-06-13Merge branch 'jc/pack-ref-exclude-include'Junio C Hamano4-14/+22
2023-05-12pack-refs: teach pack-refs --include optionJohn Cai1-8/+10
2023-05-12pack-refs: teach --exclude option to exclude refs from being packedJohn Cai4-10/+15
2023-05-09Merge branch 'en/header-split-cache-h-part-2'Junio C Hamano5-1/+8
2023-05-02Merge branch 'tb/ban-strtok'Junio C Hamano1-1/+1
2023-04-24string-list: multi-delimiter `string_list_split_in_place()`Taylor Blau1-1/+1
2023-04-24commit.h: reduce unnecessary includesElijah Newren1-0/+1
2023-04-24hash-ll.h: split out of hash.h to remove dependency on repository.hElijah Newren4-1/+6
2023-04-24copy.h: move declarations for copy.c functions from cache.hElijah Newren1-0/+1
2023-04-11treewide: reduce includes of cache.h in other headersElijah Newren1-1/+1
2023-04-11treewide: remove double forward declaration of read_in_fullElijah Newren1-0/+1
2023-04-11object-file.h: move declarations for object-file.c functions from cache.hElijah Newren1-0/+1
2023-03-21write-or-die.h: move declarations for write-or-die.c functions from cache.hElijah Newren2-0/+2
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-1/+2
2023-03-21treewide: remove unnecessary cache.h inclusion from several sourcesElijah Newren1-1/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren2-0/+2
2023-03-21treewide: remove unnecessary cache.h inclusion from a few headersElijah Newren1-1/+1
2023-02-23ident.h: move ident-related declarations out of cache.hElijah Newren1-0/+1
2023-02-23cache.h: remove dependence on hex.h; make other files include it explicitlyElijah Newren3-0/+3
2023-02-23alloc.h: move ALLOC_GROW() functions from cache.hElijah Newren2-2/+4
2023-02-23treewide: remove unnecessary cache.h includesElijah Newren1-1/+0
2023-02-23treewide: ensure one of the appropriate headers is sourced firstElijah Newren1-1/+1
2023-01-02Merge branch 'ps/fsync-refs-fix'Junio C Hamano1-1/+2
2022-12-25refs: fix corruption by not correctly syncing packed-refs to diskPatrick Steinhardt1-1/+2
2022-09-19refs: unify parse_worktree_ref() and ref_type()Han-Wen Nienhuys2-45/+37
2022-09-01git-compat-util.h: use "UNUSED", not "UNUSED(var)"Ævar Arnfjörð Bjarmason3-18/+18
2022-08-19refs: mark unused virtual method parametersJeff King3-14/+16
2022-08-19refs: mark unused each_ref_fn parametersJeff King1-1/+3
2022-05-20Merge branch 'ep/maint-equals-null-cocci'Junio C Hamano1-1/+1
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-13Revert "Merge branch 'ps/avoid-unnecessary-hook-invocation-with-packed-refs'"Junio C Hamano4-48/+14
2022-03-29Merge branch 'ab/refs-various-fixes'Junio C Hamano5-171/+127
2022-03-25Merge branch 'ps/fsync-refs'Junio C Hamano2-1/+3
2022-03-17refs debug: add a wrapper for "read_symbolic_ref"Ævar Arnfjörð Bjarmason1-1/+26
2022-03-17packed-backend: remove stub BUG(...) functionsÆvar Arnfjörð Bjarmason1-79/+9
2022-03-17refs: use designated initializers for "struct ref_iterator_vtable"Ævar Arnfjörð Bjarmason5-23/+24
2022-03-17refs: use designated initializers for "struct ref_storage_be"Ævar Arnfjörð Bjarmason3-78/+78
2022-03-15core.fsync: new option to harden referencesPatrick Steinhardt2-1/+3
2022-03-01refs/files-backend: optimize reading of symbolic refsPatrick Steinhardt1-6/+28
2022-03-01refs: add ability for backends to special-case reading of symbolic refsPatrick Steinhardt4-0/+19
2022-02-18Merge branch 'ps/avoid-unnecessary-hook-invocation-with-packed-refs'Junio C Hamano4-14/+48
2022-01-26refs API: remove "failure_errno" from refs_resolve_ref_unsafe()Ævar Arnfjörð Bjarmason1-22/+9
2022-01-17refs: skip hooks when deleting uncovered packed refsPatrick Steinhardt1-3/+6
2022-01-17refs: do not execute reference-transaction hook on packing refsPatrick Steinhardt1-2/+4
2022-01-17refs: allow passing flags when beginning transactionsPatrick Steinhardt3-6/+7
2022-01-17refs: extract packed_refs_delete_refs() to allow control of transactionPatrick Steinhardt3-9/+37
2022-01-14Merge branch 'ab/refs-errno-cleanup'Junio C Hamano1-2/+1
2022-01-13refs API: use "failure_errno", not "errno"Ævar Arnfjörð Bjarmason1-2/+1
2022-01-10Merge branch 'ab/reflog-prep'Junio C Hamano1-24/+20
2021-12-22reflog + refs-backend: move "verbose" out of the backendÆvar Arnfjörð Bjarmason1-24/+20
2021-12-22refs files-backend: assume cb->newlog if !EXPIRE_REFLOGS_DRY_RUNÆvar Arnfjörð Bjarmason1-2/+2
2021-12-22refs: centralize initialization of the base ref_store.Han-Wen Nienhuys4-11/+7
2021-12-22refs: print error message in debug outputHan-Wen Nienhuys1-1/+2
2021-12-22refs: pass gitdir to packed_ref_store_createHan-Wen Nienhuys3-8/+8
2021-12-15Merge branch 'hn/allow-bogus-oid-in-ref-tests'Junio C Hamano1-23/+30
2021-12-15Merge branch 'hn/reflog-tests'Junio C Hamano1-2/+5
2021-12-10Merge branch 'hn/create-reflog-simplify'Junio C Hamano4-9/+6
2021-12-07refs: introduce REF_SKIP_OID_VERIFICATION flagHan-Wen Nienhuys1-21/+29
2021-12-07refs: update comment.Han-Wen Nienhuys1-2/+1
2021-12-02refs/debug: trim trailing LF from reflog messageHan-Wen Nienhuys1-2/+5
2021-11-29Merge branch 'ab/refs-errno-cleanup'Junio C Hamano3-73/+113
2021-11-22refs: drop force_create argument of create_reflog APIHan-Wen Nienhuys4-9/+6
2021-10-25Merge branch 'jt/no-abuse-alternate-odb-for-submodules'Junio C Hamano6-11/+44
2021-10-16refs API: post-migration API renaming [2/2]Ævar Arnfjörð Bjarmason1-9/+9
2021-10-16refs API: make files_copy_or_rename_ref() et al not set errnoÆvar Arnfjörð Bjarmason1-4/+6
2021-10-16refs API: make loose_fill_ref_dir() not set errnoÆvar Arnfjörð Bjarmason1-2/+3
2021-10-16refs API: remove refs_read_ref_full() wrapperÆvar Arnfjörð Bjarmason1-14/+22
2021-10-16refs/files: remove "name exist?" check in lock_ref_oid_basic()Ævar Arnfjörð Bjarmason1-24/+24
2021-10-16refs API: make refs_rename_ref_available() staticÆvar Arnfjörð Bjarmason2-14/+29
2021-10-16refs API: make parse_loose_ref_contents() not set errnoHan-Wen Nienhuys2-13/+24
2021-10-16refs API: make refs_read_raw_ref() not set errnoHan-Wen Nienhuys3-10/+13
2021-10-11Merge branch 'jk/ref-paranoia'Junio C Hamano2-21/+40
2021-10-08refs: peeling non-the_repository iterators is BUGJonathan Tan4-2/+17
2021-10-08refs: teach arbitrary repo support to iteratorsJonathan Tan3-3/+9
2021-10-08refs: plumb repo into ref storesJonathan Tan4-6/+18
2021-10-06Merge branch 'ab/retire-refs-unused-funcs'Junio C Hamano3-100/+19
2021-10-03Merge branch 'hn/refs-errno-cleanup'Junio C Hamano4-39/+145
2021-10-03Merge branch 'ab/refs-files-cleanup'Junio C Hamano4-103/+46
2021-09-28refs/ref-cache.[ch]: remove "incomplete" from create_dir_entry()Ævar Arnfjörð Bjarmason3-9/+7
2021-09-28refs/ref-cache.c: remove "mkdir" parameter from find_containing_dir()Ævar Arnfjörð Bjarmason1-24/+12
2021-09-28refs/ref-cache.[ch]: remove unused add_ref_entry()Ævar Arnfjörð Bjarmason2-16/+0
2021-09-28refs/ref-cache.[ch]: remove unused remove_entry_from_dir()Ævar Arnfjörð Bjarmason2-51/+0
2021-09-27refs: add DO_FOR_EACH_OMIT_DANGLING_SYMREFS flagJeff King2-0/+11
2021-09-27refs-internal.h: reorganize DO_FOR_EACH_* flag documentationJeff King1-19/+27
2021-09-27refs-internal.h: move DO_FOR_EACH_* flags next to each otherJeff King1-8/+8
2021-09-09refs/files-backend: remove unused open mode parameterRené Scharfe1-1/+1
2021-08-25refs: make errno output explicit for read_raw_ref_fnHan-Wen Nienhuys4-30/+34
2021-08-25refs/files-backend: stop setting errno from lock_ref_oid_basicHan-Wen Nienhuys1-9/+2
2021-08-25refs: remove EINVAL errno output from specification of read_raw_ref_fnHan-Wen Nienhuys1-3/+3
2021-08-25refs file backend: move raceproof_create_file() hereÆvar Arnfjörð Bjarmason1-0/+109
2021-08-25refs/files: remove unused "errno != ENOTDIR" conditionÆvar Arnfjörð Bjarmason1-2/+1
2021-08-25refs/files: remove unused "errno == EISDIR" codeÆvar Arnfjörð Bjarmason1-25/+3
2021-08-25refs/files: remove unused "oid" in lock_ref_oid_basic()Ævar Arnfjörð Bjarmason1-56/+14
2021-08-25refs API: remove OID argument to reflog_expire()Ævar Arnfjörð Bjarmason4-6/+5
2021-08-25reflog expire: don't lock reflogs using previously seen OIDÆvar Arnfjörð Bjarmason1-2/+5
2021-08-25refs/files: add a comment about refs_reflog_exists() callÆvar Arnfjörð Bjarmason1-0/+13
2021-08-25refs/debug: re-indent argument list for "prepare"Ævar Arnfjörð Bjarmason1-2/+2
2021-08-25refs/files: remove unused "skip" in lock_raw_ref() tooÆvar Arnfjörð Bjarmason1-5/+4
2021-08-25refs/files: remove unused "extras/skip" in lock_ref_oid_basic()Ævar Arnfjörð Bjarmason1-15/+7
2021-08-25refs: drop unused "flags" parameter to lock_ref_oid_basic()Jeff King1-7/+6
2021-08-19refs/files: remove unused REF_DELETING in lock_ref_oid_basic()Ævar Arnfjörð Bjarmason1-2/+0
2021-08-19refs/packet: add missing BUG() invocations to reflog callbacksÆvar Arnfjörð Bjarmason1-0/+5