aboutsummaryrefslogtreecommitdiffstats
path: root/refs.h
AgeCommit message (Expand)AuthorFilesLines
2025-04-16Merge branch 'kn/non-transactional-batch-updates'Junio C Hamano1-25/+45
2025-04-08refs: support rejection in batch updates during F/D checksKarthik Nayak1-12/+0
2025-04-08refs: implement batch reference update supportKarthik Nayak1-0/+22
2025-04-08refs: introduce enum-based transaction error typesKarthik Nayak1-19/+29
2025-03-29Merge branch 'ps/refname-avail-check-optim'Junio C Hamano1-0/+12
2025-03-12refs: introduce function to batch refname availability checksPatrick Steinhardt1-0/+12
2025-03-06Merge branch 'tz/doc-txt-to-adoc-fixes'Junio C Hamano1-1/+1
2025-03-03refs.h: *.txt -> *.adoc fixesTodd Zullinger1-1/+1
2025-02-27Merge branch 'kn/ref-migrate-skip-reflog'Junio C Hamano1-1/+4
2025-02-21builtin/refs: add '--no-reflog' flag to drop reflogsKarthik Nayak1-1/+4
2025-01-22refs: mark `ref_transaction_update_reflog()` as staticKarthik Nayak1-14/+0
2024-12-23Merge branch 'kn/reflog-migration'Junio C Hamano1-0/+14
2024-12-19Merge branch 'bf/set-head-symref'Junio C Hamano1-1/+18
2024-12-16refs: introduce the `ref_transaction_update_reflog` functionKarthik Nayak1-0/+14
2024-12-15Merge branch 'jc/forbid-head-as-tagname'Junio C Hamano1-0/+29
2024-12-04Merge branch 'sj/ref-contents-check'Junio C Hamano1-1/+2
2024-12-03refs: drop strbuf_ prefix from helpersJunio C Hamano1-4/+4
2024-12-03refs: move ref name helpers aroundJunio C Hamano1-0/+29
2024-11-26refs: adapt `initial_transaction` flag to be unsignedPatrick Steinhardt1-1/+1
2024-11-25refs: add create_only option to refs_update_symref_extendedBence Ferdinandy1-1/+1
2024-11-25refs: add TRANSACTION_CREATE_EXISTS errorBence Ferdinandy1-1/+3
2024-11-25refs: atomically record overwritten ref in update_symrefBence Ferdinandy1-0/+4
2024-11-25refs: standardize output of refs_read_symbolic_refBence Ferdinandy1-0/+11
2024-11-21ref: support multiple worktrees check for refsshejialuo1-1/+2
2024-11-21refs: skip collision checks in initial transactionsPatrick Steinhardt1-1/+4
2024-11-21refs: introduce "initial" transaction flagPatrick Steinhardt1-19/+18
2024-11-21refs: allow passing flags when setting up a transactionPatrick Steinhardt1-1/+2
2024-09-25Merge branch 'ak/typofix-2.46-maint'Junio C Hamano1-3/+3
2024-09-25Merge branch 'ps/reftable-exclude'Junio C Hamano1-0/+9
2024-09-19refs: fix typosAndrew Kreimer1-3/+3
2024-09-16refs: properly apply exclude patterns to namespaced refsPatrick Steinhardt1-0/+9
2024-09-12refs: stop modifying global `log_all_ref_updates` variablePatrick Steinhardt1-1/+3
2024-08-16Merge branch 'sj/ref-fsck'Junio C Hamano1-0/+8
2024-08-15Merge branch 'jc/refs-symref-referent'Junio C Hamano1-1/+1
2024-08-09refs: add referent to each_ref_fnJohn Cai1-1/+1
2024-08-08refs: set up ref consistency check infrastructureshejialuo1-0/+8
2024-08-02refs: drop `ref_store`-less functionsPatrick Steinhardt1-207/+0
2024-07-18Merge branch 'ch/refs-without-the-repository-fix'Junio C Hamano1-2/+2
2024-07-16refs: correct the version numbers in a commentChristian Hesse1-2/+2
2024-07-02Merge branch 'ps/use-the-repository'Junio C Hamano1-7/+1
2024-06-20Merge branch 'kn/update-ref-symref'Junio C Hamano1-1/+5
2024-06-17Merge branch 'ps/no-writable-strings'Junio C Hamano1-1/+1
2024-06-14refs: avoid include cycle with "repository.h"Patrick Steinhardt1-7/+1
2024-06-07global: improve const correctness when assigning string constantsPatrick Steinhardt1-1/+1
2024-06-07update-ref: add support for 'symref-create' commandKarthik Nayak1-0/+1
2024-06-07update-ref: add support for 'symref-delete' commandKarthik Nayak1-1/+3
2024-06-07update-ref: add support for 'symref-verify' commandKarthik Nayak1-0/+1
2024-06-06refs: implement logic to migrate between ref storage formatsPatrick Steinhardt1-0/+18
2024-06-06refs: implement removal of ref storagesPatrick Steinhardt1-0/+5
2024-06-06refs: allow to skip creation of reflog entriesPatrick Steinhardt1-1/+7
2024-06-06refs: convert ref storage format to an enumPatrick Steinhardt1-2/+8
2024-05-28Merge branch 'ps/pseudo-ref-terminology'Junio C Hamano1-2/+46
2024-05-23Merge branch 'ps/pseudo-ref-terminology' into ps/ref-storage-migrationJunio C Hamano1-2/+46
2024-05-23Merge branch 'ps/refs-without-the-repository-updates' into ps/ref-storage-mig...Junio C Hamano1-29/+22
2024-05-20Merge branch 'kn/ref-transaction-symref'Junio C Hamano1-2/+18
2024-05-17refs: remove `dwim_log()`Patrick Steinhardt1-1/+0
2024-05-17refs: drop `git_default_branch_name()`Patrick Steinhardt1-3/+1
2024-05-17refs: pass repo when peeling objectsPatrick Steinhardt1-2/+3
2024-05-17refs: pass ref store when detecting dangling symrefsPatrick Steinhardt1-3/+4
2024-05-17refs: convert iteration over replace refs to accept ref storePatrick Steinhardt1-15/+2
2024-05-17refs: refactor `resolve_gitlink_ref()` to accept a repositoryPatrick Steinhardt1-2/+3
2024-05-17refs: pass repo when retrieving submodule ref storePatrick Steinhardt1-1/+2
2024-05-17refs: implement releasing ref storagesPatrick Steinhardt1-0/+5
2024-05-17refs: rename `init_db` callback to avoid confusionPatrick Steinhardt1-2/+2
2024-05-15ref-filter: properly distinuish pseudo and root refsPatrick Steinhardt1-0/+18
2024-05-15refs: classify HEAD as a root refPatrick Steinhardt1-3/+2
2024-05-15refs: do not check ref existence in `is_root_ref()`Patrick Steinhardt1-2/+3
2024-05-15refs: rename `is_pseudoref()` to `is_root_ref()`Patrick Steinhardt1-1/+27
2024-05-07refs: remove functions without ref storePatrick Steinhardt1-70/+209
2024-05-07refs: add `exclude_patterns` parameter to `for_each_fullref_in()`Patrick Steinhardt1-1/+2
2024-05-07refs: introduce missing functions that accept a `struct ref_store`Patrick Steinhardt1-0/+13
2024-05-07refs: rename `refs_create_symref()` to `refs_update_symref()`Karthik Nayak1-1/+1
2024-05-07refs: accept symref values in `ref_transaction_update()`Karthik Nayak1-1/+17
2024-03-25refs/reftable: expose auto compaction via new flagPatrick Steinhardt1-1/+5
2024-03-25refs: remove `PACK_REFS_ALL` flagPatrick Steinhardt1-2/+0
2024-03-25refs: move `struct pack_refs_opts` to where it's usedPatrick Steinhardt1-6/+6
2024-03-05Merge branch 'kn/for-all-refs'Junio C Hamano1-0/+9
2024-03-05Merge branch 'jk/reflog-special-cases-fix'Junio C Hamano1-1/+14
2024-02-26read_ref_at(): special-case ref@{0} for an empty reflogJeff King1-1/+14
2024-02-23refs: introduce `refs_for_each_include_root_refs()`Karthik Nayak1-0/+6
2024-02-23refs: introduce `is_pseudoref()` and `is_headref()`Karthik Nayak1-0/+3
2024-02-21refs: drop unused params from the reflog iterator callbackPatrick Steinhardt1-2/+9
2024-01-26Merge branch 'ps/worktree-refdb-initialization'Junio C Hamano1-1/+3
2024-01-16Merge branch 'ps/refstorage-extension'Junio C Hamano1-0/+3
2024-01-08refs/files: skip creation of "refs/{heads,tags}" for worktreesPatrick Steinhardt1-0/+2
2024-01-08refs: prepare `refs_init_db()` for initializing worktree refsPatrick Steinhardt1-1/+1
2024-01-02refs: refactor logic to look up storage backendsPatrick Steinhardt1-0/+3
2023-12-15refs.h: HEAD is not that specialJunio C Hamano1-1/+1
2023-07-21Merge branch 'tb/refs-exclusion-and-packed-refs'Junio C Hamano1-4/+25
2023-07-10refs.h: implement `hidden_refs_to_excludes()`Taylor Blau1-0/+6
2023-07-10refs.h: let `for_each_namespaced_ref()` take excluded patternsTaylor Blau1-1/+6
2023-07-10revision.h: store hidden refs in a `strvec`Taylor Blau1-2/+2
2023-07-10refs/packed-backend.c: implement jump lists to avoid excluded pattern(s)Taylor Blau1-0/+4
2023-07-10refs: plumb `exclude_patterns` argument throughoutTaylor Blau1-1/+7
2023-05-12pack-refs: teach pack-refs --include optionJohn Cai1-0/+1
2023-05-12pack-refs: teach --exclude option to exclude refs from being packedJohn Cai1-1/+6
2023-04-06Merge branch 'en/header-split-cleanup'Junio C Hamano1-1/+0
2023-03-28cocci: apply the "refs.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-6/+0
2023-03-21treewide: remove unnecessary cache.h inclusion from a few headersElijah Newren1-1/+0
2022-12-13ls-refs: use repository parameter to iterate refsJeff King1-2/+4
2022-11-17refs: get rid of global list of hidden refsPatrick Steinhardt1-2/+3
2022-09-19refs: unify parse_worktree_ref() and ref_type()Han-Wen Nienhuys1-7/+26
2022-08-05refs: add array of ref namespacesDerrick Stolee1-0/+46
2022-04-13Revert "Merge branch 'ps/avoid-unnecessary-hook-invocation-with-packed-refs'"Junio C Hamano1-7/+1
2022-03-01refs: add ability for backends to special-case reading of symbolic refsPatrick Steinhardt1-0/+3
2022-03-01Merge branch 'ps/fetch-atomic' into ps/fetch-mirror-optimJunio C Hamano1-0/+14
2022-02-18Merge branch 'ps/avoid-unnecessary-hook-invocation-with-packed-refs'Junio C Hamano1-1/+7
2022-02-17refs: add interface to iterate over queued transactional updatesPatrick Steinhardt1-0/+14
2022-01-26refs API: remove "failure_errno" from refs_resolve_ref_unsafe()Ævar Arnfjörð Bjarmason1-6/+1
2022-01-17refs: allow skipping the reference-transaction hookPatrick Steinhardt1-0/+5
2022-01-17refs: allow passing flags when beginning transactionsPatrick Steinhardt1-1/+2
2021-12-22reflog + refs-backend: move "verbose" out of the backendÆvar Arnfjörð Bjarmason1-2/+1
2021-12-15Merge branch 'hn/allow-bogus-oid-in-ref-tests'Junio C Hamano1-2/+14
2021-12-15Merge branch 'jc/reflog-iterator-callback-doc'Junio C Hamano1-1/+23
2021-12-10Merge branch 'hn/create-reflog-simplify'Junio C Hamano1-2/+2
2021-12-07refs: introduce REF_SKIP_REFNAME_VERIFICATION flagHan-Wen Nienhuys1-2/+8
2021-12-07refs: introduce REF_SKIP_OID_VERIFICATION flagHan-Wen Nienhuys1-1/+7
2021-11-28refs: document callback for reflog-ent iteratorsJunio C Hamano1-1/+23
2021-11-22refs: drop force_create argument of create_reflog APIHan-Wen Nienhuys1-2/+2
2021-10-16refs API: post-migration API renaming [2/2]Ævar Arnfjörð Bjarmason1-2/+0
2021-10-16refs API: post-migration API renaming [1/2]Ævar Arnfjörð Bjarmason1-13/+9
2021-10-16refs API: remove refs_read_ref_full() wrapperÆvar Arnfjörð Bjarmason1-2/+0
2021-10-16refs API: add a version of refs_resolve_ref_unsafe() with "errno"Ævar Arnfjörð Bjarmason1-0/+12
2021-10-11Merge branch 'jk/ref-paranoia'Junio C Hamano1-6/+3
2021-10-06Merge branch 'ab/retire-refs-unused-funcs'Junio C Hamano1-2/+0
2021-09-28refs.[ch]: remove unused ref_storage_backend_exists()Ævar Arnfjörð Bjarmason1-2/+0
2021-09-27refs: drop "broken" flag from for_each_fullref_in()Jeff King1-6/+3
2021-08-25refs API: remove OID argument to reflog_expire()Ævar Arnfjörð Bjarmason1-4/+3
2021-08-25reflog expire: don't lock reflogs using previously seen OIDÆvar Arnfjörð Bjarmason1-1/+1
2021-02-05Merge branch 'tb/ls-refs-optim'Junio C Hamano1-0/+9
2021-01-22refs: expose 'for_each_fullref_in_prefixes'Taylor Blau1-0/+9
2021-01-21refs: switch peel_ref() to peel_iterated_oid()Jeff King1-10/+10
2020-12-13get_default_branch_name(): prepare for showing some adviceJohannes Schindelin1-2/+2
2020-09-09Merge branch 'jt/interpret-branch-name-fallback'Junio C Hamano1-2/+10
2020-09-02wt-status: tolerate dangling marksJonathan Tan1-3/+5
2020-09-02refs: move dwim_ref() to header fileJonathan Tan1-1/+7
2020-08-21refs: make refs_ref_exists publicHan-Wen Nienhuys1-0/+2
2020-07-28argv-array: rename to strvecJeff King1-2/+2
2020-07-06Merge branch 'js/default-branch-name'Junio C Hamano1-0/+9
2020-06-24init: allow setting the default for the initial branch name via the configDon Goodman-Wilson1-0/+9
2020-05-20refs.h: clarify reflog iteration orderHan-Wen Nienhuys1-1/+17
2020-04-16log-tree: make ref_filter_match() a helper methodDerrick Stolee1-12/+0
2019-11-18refs: move doc to refs.hHeba Waly1-0/+51
2019-06-13Merge branch 'nd/worktree-name-sanitization'Junio C Hamano1-0/+6
2019-05-15worktree add: sanitize worktree namesNguyễn Thái Ngọc Duy1-0/+6
2019-05-13Merge branch 'dl/no-extern-in-func-decl'Junio C Hamano1-1/+1
2019-05-05*.[ch]: remove extern from function declarations using spatchDenton Liu1-1/+1
2019-04-08refs.c: remove the_repo from read_ref_at()Nguyễn Thái Ngọc Duy1-1/+2
2019-04-08refs.c: add repo_dwim_log()Nguyễn Thái Ngọc Duy1-0/+1
2019-04-08refs.c: add repo_dwim_ref()Nguyễn Thái Ngọc Duy1-0/+1
2019-04-08refs.c: remove the_repo from expand_ref()Nguyễn Thái Ngọc Duy1-1/+1
2019-04-08refs.c: add refs_shorten_unambiguous_ref()Nguyễn Thái Ngọc Duy1-0/+2
2018-11-13Merge branch 'nd/per-worktree-ref-iteration'Junio C Hamano1-3/+5
2018-10-22refs: new ref types to make per-worktree refs visible to all worktreesNguyễn Thái Ngọc Duy1-3/+5
2018-10-16Merge branch 'ds/commit-graph-with-grafts'Junio C Hamano1-1/+11
2018-08-21refs.c: upgrade for_each_replace_ref to be a each_repo_ref_fn callbackStefan Beller1-1/+1
2018-08-21refs.c: migrate internal ref iteration to pass thru repository argumentStefan Beller1-0/+10
2018-08-15Add missing includes and forward declarationsElijah Newren1-0/+2
2018-05-08Merge branch 'sb/object-store-replace'Junio C Hamano1-2/+2
2018-04-12refs: allow for_each_replace_ref to handle arbitrary repositoriesStefan Beller1-3/+1
2018-04-12refs: store the main ref store inside the repository structStefan Beller1-3/+1
2018-04-12refs: add repository argument to for_each_replace_refStefan Beller1-1/+3
2018-04-12refs: add repository argument to get_main_ref_storeStefan Beller1-1/+3
2018-03-15ls-remote: pass ref prefixes when requesting a remote's refsBrandon Williams1-0/+7
2017-11-22log: add option to choose which refs to decorateRafael Ascensão1-0/+24
2017-11-06refs: update some more docs to use "oid" rather than "sha1"Michael Haggerty1-4/+4
2017-11-06refs: rename constant `REF_NODEREF` to `REF_NO_DEREF`Michael Haggerty1-3/+3
2017-11-06refs: tidy up and adjust visibility of the `ref_update` flagsMichael Haggerty1-28/+39
2017-11-06prune_ref(): call `ref_transaction_add_update()` directlyMichael Haggerty1-3/+1
2017-10-16refs: convert resolve_ref_unsafe to struct object_idbrian m. carlson1-7/+7
2017-10-16refs: convert resolve_gitlink_ref to struct object_idbrian m. carlson1-1/+1
2017-10-16refs: convert reflog_expire parameter to struct object_idbrian m. carlson1-3/+3
2017-10-16refs: convert read_ref_at to struct object_idbrian m. carlson1-1/+1
2017-10-16refs: convert peel_ref to struct object_idbrian m. carlson1-4/+4
2017-10-16refs: convert dwim_log to struct object_idbrian m. carlson1-1/+1
2017-10-16refs: convert dwim_ref and expand_ref to struct object_idbrian m. carlson1-2/+2
2017-10-16refs: convert read_ref and read_ref_full to object_idbrian m. carlson1-3/+3
2017-10-16refs: convert resolve_refdup and refs_resolve_refdup to struct object_idbrian m. carlson1-2/+2
2017-10-16refs: update ref transactions to use struct object_idbrian m. carlson1-19/+19
2017-10-16refs: convert update_ref and refs_update_ref to use struct object_idbrian m. carlson1-4/+1
2017-10-16refs: convert delete_ref and refs_delete_ref to struct object_idbrian m. carlson1-6/+6
2017-10-03Merge branch 'sd/branch-copy'Junio C Hamano1-1/+8
2017-09-28Merge branch 'rs/resolve-ref-optional-result'Junio C Hamano1-4/+5
2017-09-25Merge branch 'tg/refs-allowed-flags'Junio C Hamano1-0/+8
2017-09-24refs: make sha1 output parameter of refs_resolve_ref_unsafe() optionalRené Scharfe1-4/+5
2017-09-14refs: strip out not allowed flags from ref_transaction_updateThomas Gummerer1-0/+8
2017-08-24refs: remove dead for_each_*_submodule()Nguyễn Thái Ngọc Duy1-10/+0
2017-08-24refs.c: move for_each_remote_ref_submodule() to submodule.cNguyễn Thái Ngọc Duy1-2/+0
2017-08-24revision.c: use refs_for_each*() instead of for_each_*_submodule()Nguyễn Thái Ngọc Duy1-3/+3
2017-08-24refs: add refs_head_ref()Nguyễn Thái Ngọc Duy1-0/+2
2017-06-27Spelling fixesVille Skyttä1-2/+2
2017-06-18for_each_bisect_ref(): don't trim refnamesMichael Haggerty1-1/+4
2017-06-18branch: add a --copy (-c) option to go with --move (-m)Sahil Dua1-1/+8
2017-05-23ref_transaction_prepare(): new optional step for reference updatesMichael Haggerty1-27/+97
2017-05-23ref_store: take a `msg` parameter when deleting referencesMichael Haggerty1-5/+7
2017-05-23refs.h: clarify docstring for the ref_transaction_update()-related fnsMichael Haggerty1-0/+13
2017-05-23Merge branch 'bc/object-id'Junio C Hamano1-3/+3
2017-05-16Merge branch 'js/larger-timestamps'Junio C Hamano1-4/+4
2017-05-16Merge branch 'nd/worktree-kill-parse-ref'Junio C Hamano1-10/+2
2017-05-08reflog_expire: convert to struct object_idbrian m. carlson1-3/+3