aboutsummaryrefslogtreecommitdiffstats
path: root/refs.h
AgeCommit message (Expand)AuthorFilesLines
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
2017-04-27timestamp_t: a new data type for timestampsJohannes Schindelin1-4/+4
2017-04-24refs: kill set_worktree_head_symref()Nguyễn Thái Ngọc Duy1-10/+0
2017-04-24refs: introduce get_worktree_ref_store()Nguyễn Thái Ngọc Duy1-0/+2
2017-04-16refs_verify_refname_available(): implement once for all backendsMichael Haggerty1-1/+1
2017-04-14refs.h: add a note about sorting order of for_each_ref_*Nguyễn Thái Ngọc Duy1-2/+2
2017-04-14refs: delete pack_refs() in favor of refs_pack_refs()Nguyễn Thái Ngọc Duy1-1/+0
2017-04-14refs: new transaction related ref-store apiNguyễn Thái Ngọc Duy1-0/+9
2017-04-14refs: add new ref-store apiNguyễn Thái Ngọc Duy1-0/+74
2017-04-14refs: rename get_ref_store() to get_submodule_ref_store() and make it publicNguyễn Thái Ngọc Duy1-0/+11
2017-03-27refs.c: make get_main_ref_store() public and use itNguyễn Thái Ngọc Duy1-0/+3
2017-03-18refs.h: add forward declaration for structs used in this fileNguyễn Thái Ngọc Duy1-0/+4
2017-03-17Merge branch 'bc/object-id'Junio C Hamano1-1/+1
2017-02-22refs: convert each_reflog_ent_fn to struct object_idbrian m. carlson1-1/+1
2017-02-20branch: record creation of renamed branch in HEAD's logKyle Meyer1-1/+2
2017-02-20delete_ref: accept a reflog message argumentKyle Meyer1-2/+2
2017-01-31refs: add option core.logAllRefUpdates = alwaysCornelius Weig1-0/+2
2016-10-10Merge branch 'nd/shallow-deepen'Junio C Hamano1-0/+1
2016-09-19Merge branch 'bc/object-id'Junio C Hamano1-0/+3
2016-09-19Merge branch 'mh/ref-store'Junio C Hamano1-4/+9
2016-09-09refs: add methods to init refs dbDavid Turner1-0/+2
2016-09-09resolve_gitlink_ref(): rename path parameter to submoduleMichael Haggerty1-4/+5
2016-09-09refs: add a backend method structureRonnie Sahlberg1-0/+2
2016-09-07refs: add an update_ref_oid function.brian m. carlson1-0/+3
2016-07-25Merge branch 'mh/ref-iterators'Junio C Hamano1-63/+78
2016-06-20refs: introduce an iterator interfaceMichael Haggerty1-1/+3
2016-06-20delete_refs(): add a flags argumentMichael Haggerty1-2/+3
2016-06-13refs: add expand_ref()Nguyễn Thái Ngọc Duy1-0/+1
2016-06-13refs: remove unnecessary "extern" keywordsMichael Haggerty1-61/+73
2016-06-10refs.h: fix misspelt "occurred" in a commentPeter Colberg1-1/+1
2016-04-04refs: add a new function set_worktree_head_symrefKazuki Yamaguchi1-0/+9
2016-02-26Merge branch 'dt/initial-ref-xn-commit-doc'Junio C Hamano1-0/+12
2016-02-25refs: document transaction semanticsDavid Turner1-0/+12
2015-12-29create_symref: modernize variable namesJeff King1-1/+1
2015-11-05hideRefs: add support for matching full refsLukas Fleischer1-1/+9
2015-10-05Merge branch 'kn/for-each-tag'Junio C Hamano1-0/+1
2015-09-17ref-filter: add option to filter out tags, branches and remotesKarthik Nayak1-0/+1
2015-08-25Merge branch 'dt/refs-pseudo'Junio C Hamano1-0/+8
2015-08-03Merge branch 'jk/refspec-parse-wildcard'Junio C Hamano1-2/+2
2015-08-03Merge branch 'dt/refs-backend-preamble'Junio C Hamano1-2/+3
2015-07-31refs: add ref_type functionDavid Turner1-0/+8
2015-07-27refs: loosen restriction on wildcard "*" refspecsJacob Keller1-2/+2
2015-07-21refs: add REF_FORCE_CREATE_REFLOG flagDavid Turner1-0/+1
2015-07-21refs: new public ref function: safe_create_reflogDavid Turner1-1/+1
2015-07-21refs.c: add err arguments to reflog functionsDavid Turner1-2/+2
2015-06-22delete_ref(): use the usual convention for old_sha1Michael Haggerty1-5/+5
2015-06-22refs.h: add some parameter names to function declarationsMichael Haggerty1-11/+11
2015-06-22refs: move the remaining ref module declarations to refs.hMichael Haggerty1-23/+98
2015-06-22refs: remove some functions from the module's public interfaceMichael Haggerty1-30/+0
2015-06-22initial_ref_transaction_commit(): function for initial ref creationMichael Haggerty1-0/+14
2015-06-22repack_without_refs(): make function privateMichael Haggerty1-11/+0
2015-06-22delete_refs(): new function for the refs APIMichael Haggerty1-0/+7
2015-06-22delete_ref(): move declaration to refs.hMichael Haggerty1-0/+10
2015-05-25each_ref_fn_adapter(): remove adapterMichael Haggerty1-11/+0
2015-05-25each_ref_fn: change to take an object_id parameterMichael Haggerty1-1/+12
2015-05-11Merge branch 'nd/multiple-work-trees'Junio C Hamano1-1/+1
2015-02-17refs.h: remove duplication in function docstringsMichael Haggerty1-23/+43
2015-02-17update_ref(): improve documentationMichael Haggerty1-3/+10
2015-02-17ref_transaction_verify(): new function to check a reference's valueMichael Haggerty1-8/+26
2015-02-17ref_transaction_delete(): remove "have_old" parameterMichael Haggerty1-3/+3
2015-02-17ref_transaction_update(): remove "have_old" parameterMichael Haggerty1-3/+3
2015-02-17refs.c: change some "flags" to "unsigned int"Michael Haggerty1-5/+5
2015-02-12refs: move REF_DELETING to refs.cMichael Haggerty1-3/+1
2015-02-11Merge branch 'mh/reflog-expire'Junio C Hamano1-27/+48
2014-12-22refs.c: don't expose the internal struct ref_lock in the header fileStefan Beller1-9/+0
2014-12-22lock_any_ref_for_update(): inline functionMichael Haggerty1-8/+1
2014-12-22refs.c: remove unlock_ref/close_ref/commit_ref from the refs apiRonnie Sahlberg1-9/+0
2014-12-22reflog_expire(): new function in the reference APIMichael Haggerty1-0/+46
2014-12-04refs.c: make ref_transaction_delete a wrapper for ref_transaction_updateRonnie Sahlberg1-1/+1
2014-12-01git_snpath(): retire and replace with strbuf_git_path()Nguyễn Thái Ngọc Duy1-1/+1
2014-11-25repack_without_refs(): make the refnames argument a string_listMichael Haggerty1-1/+9
2014-10-15refs.c: allow listing and deleting badly named refsRonnie Sahlberg1-2/+10
2014-10-15packed-ref cache: forbid dot-components in refnamesJonathan Nieder1-5/+1
2014-10-15branch -d: avoid repeated symref resolutionJonathan Nieder1-0/+2