aboutsummaryrefslogtreecommitdiffstats
path: root/refs/refs-internal.h
AgeCommit message (Expand)AuthorFilesLines
2024-03-05Merge branch 'kn/for-all-refs'Junio C Hamano1-0/+6
2024-02-23refs: introduce `refs_for_each_include_root_refs()`Karthik Nayak1-0/+6
2024-02-21refs: always treat iterators as orderedPatrick Steinhardt1-16/+2
2024-02-21refs/files: sort merged worktree and common reflogsPatrick Steinhardt1-0/+9
2024-02-07refs: introduce reftable backendPatrick Steinhardt1-0/+1
2024-01-08refs: prepare `refs_init_db()` for initializing worktree refsPatrick Steinhardt1-1/+3
2024-01-02refs: refactor logic to look up storage backendsPatrick Steinhardt1-1/+0
2023-11-17refs: remove `delete_refs` callback from backendsPatrick Steinhardt1-3/+0
2023-07-21Merge branch 'tb/refs-exclusion-and-packed-refs'Junio C Hamano1-3/+4
2023-07-10refs: plumb `exclude_patterns` argument throughoutTaylor Blau1-3/+4
2023-05-12pack-refs: teach --exclude option to exclude refs from being packedJohn Cai1-1/+2
2023-02-23treewide: remove unnecessary cache.h includesElijah Newren1-1/+0
2022-04-13Revert "Merge branch 'ps/avoid-unnecessary-hook-invocation-with-packed-refs'"Junio C Hamano1-1/+0
2022-03-01refs: add ability for backends to special-case reading of symbolic refsPatrick Steinhardt1-0/+16
2022-02-18Merge branch 'ps/avoid-unnecessary-hook-invocation-with-packed-refs'Junio C Hamano1-0/+1
2022-01-17refs: allow passing flags when beginning transactionsPatrick Steinhardt1-0/+1
2021-12-22refs: centralize initialization of the base ref_store.Han-Wen Nienhuys1-2/+2
2021-12-10Merge branch 'hn/create-reflog-simplify'Junio C Hamano1-1/+1
2021-11-29Merge branch 'ab/refs-errno-cleanup'Junio C Hamano1-19/+7
2021-11-22refs: drop force_create argument of create_reflog APIHan-Wen Nienhuys1-1/+1
2021-10-25Merge branch 'jt/no-abuse-alternate-odb-for-submodules'Junio C Hamano1-2/+9
2021-10-16refs API: make refs_rename_ref_available() staticÆvar Arnfjörð Bjarmason1-14/+0
2021-10-16refs API: make parse_loose_ref_contents() not set errnoHan-Wen Nienhuys1-2/+4
2021-10-16refs API: make refs_read_raw_ref() not set errnoHan-Wen Nienhuys1-3/+3
2021-10-11Merge branch 'jk/ref-paranoia'Junio C Hamano1-21/+35
2021-10-08refs: teach arbitrary repo support to iteratorsJonathan Tan1-0/+1
2021-10-08refs: plumb repo into ref storesJonathan Tan1-2/+8
2021-09-27refs: add DO_FOR_EACH_OMIT_DANGLING_SYMREFS flagJeff King1-0/+6
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-08-25refs: make errno output explicit for read_raw_ref_fnHan-Wen Nienhuys1-8/+12
2021-08-25refs: remove EINVAL errno output from specification of read_raw_ref_fnHan-Wen Nienhuys1-3/+3
2021-08-25refs API: remove OID argument to reflog_expire()Ævar Arnfjörð Bjarmason1-1/+1
2021-05-20refs: make explicit that ref_iterator_peel returns booleanHan-Wen Nienhuys1-0/+3
2020-09-22Merge branch 'hn/refs-trace-backend'Junio C Hamano1-0/+5
2020-09-09refs: add GIT_TRACE_REFS debugging mechanismHan-Wen Nienhuys1-0/+5
2020-09-08refs: move REF_LOG_ONLY to refs-internal.hHan-Wen Nienhuys1-0/+7
2020-08-19refs: move gitdir into base ref_storeHan-Wen Nienhuys1-0/+3
2020-08-19refs: fix comment about submodule ref_storesHan-Wen Nienhuys1-1/+1
2020-08-19refs: split off reading loose ref data in separate functionHan-Wen Nienhuys1-0/+6
2020-07-10reflog: cleanse messages in the refs.c layerJunio C Hamano1-6/+0
2020-05-20refs: improve documentation for ref iteratorHan-Wen Nienhuys1-3/+15
2019-11-10Fix spelling errors in code commentsElijah Newren1-1/+1
2018-10-16Merge branch 'rj/header-check'Junio C Hamano1-0/+4
2018-10-16Merge branch 'tq/refs-internal-comment-fix'Junio C Hamano1-1/+1
2018-09-20refs/refs-internal.h: add missing declarations (hdr-check)Ramsay Jones1-0/+4
2018-09-17refs: docstring typoTao Qingyun1-1/+1
2018-08-21refs.c: migrate internal ref iteration to pass thru repository argumentStefan Beller1-2/+3
2018-07-24Merge branch 'bp/log-ref-write-fd-with-strbuf'Junio C Hamano1-4/+3
2018-07-10convert log_ref_write_fd() to use strbufBen Peart1-4/+3
2018-07-09fixup! refs/refs-internal.h: avoid forward declaration of an enumJunio C Hamano1-1/+1
2018-07-09refs/refs-internal.h: avoid forward declaration of an enumBeat Bolli1-0/+2
2017-11-06refs: update some more docs to use "oid" rather than "sha1"Michael Haggerty1-9/+9
2017-11-06refs: rename constant `REF_NODEREF` to `REF_NO_DEREF`Michael Haggerty1-2/+2
2017-11-06refs: tidy up and adjust visibility of the `ref_update` flagsMichael Haggerty1-52/+15
2017-10-16refs: convert read_raw_ref backends to struct object_idbrian m. carlson1-5/+5
2017-10-16refs: convert peel_object to struct object_idbrian m. carlson1-2/+2
2017-10-16refs: convert reflog_expire parameter to struct object_idbrian m. carlson1-1/+1
2017-10-16refs: update ref transactions to use struct object_idbrian m. carlson1-2/+2
2017-10-03Merge branch 'mh/mmap-packed-refs'Junio C Hamano1-7/+19
2017-10-03Merge branch 'sd/branch-copy'Junio C Hamano1-0/+4
2017-09-25ref_store: implement `refs_peel_ref()` genericallyMichael Haggerty1-3/+0
2017-09-14ref_iterator: keep track of whether the iterator output is orderedMichael Haggerty1-4/+19
2017-09-09struct ref_transaction: add a place for backends to store dataMichael Haggerty1-0/+1
2017-08-26Merge branch 'mh/ref-lock-entry'Junio C Hamano1-0/+6
2017-08-23refs: retry acquiring reference locks for 100msMichael Haggerty1-0/+6
2017-06-23packed_ref_store: make class into a subclass of `ref_store`Michael Haggerty1-0/+1
2017-06-23packed-backend: new module for handling packed referencesMichael Haggerty1-0/+9
2017-06-18branch: add a --copy (-c) option to go with --move (-m)Sahil Dua1-0/+4
2017-05-23ref_update_reject_duplicates(): expose function to whole refs moduleMichael Haggerty1-0/+8
2017-05-23ref_transaction_prepare(): new optional step for reference updatesMichael Haggerty1-10/+35
2017-05-23ref_store: take a `msg` parameter when deleting referencesMichael Haggerty1-1/+1
2017-05-23ref_iterator_begin_fn(): fix docstringMichael Haggerty1-3/+4
2017-05-23Merge branch 'bc/object-id'Junio C Hamano1-2/+2
2017-05-16Merge branch 'nd/worktree-kill-parse-ref'Junio C Hamano1-0/+4
2017-05-08refs: convert struct ref_update to use struct object_idbrian m. carlson1-2/+2
2017-04-24refs: add REFS_STORE_ALL_CAPSNguyễn Thái Ngọc Duy1-0/+4
2017-04-16refs_verify_refname_available(): implement once for all backendsMichael Haggerty1-7/+0
2017-04-14refs_ref_iterator_begin(): new functionMichael Haggerty1-0/+11
2017-04-14refs_read_raw_ref(): new functionMichael Haggerty1-0/+4
2017-04-14refs: new transaction related ref-store apiNguyễn Thái Ngọc Duy1-0/+1
2017-04-14refs: add new ref-store apiNguyễn Thái Ngọc Duy1-28/+3
2017-04-14refs: rename get_ref_store() to get_submodule_ref_store() and make it publicNguyễn Thái Ngọc Duy1-12/+0
2017-04-14files-backend: replace submodule_allowed check in files_downcast()Nguyễn Thái Ngọc Duy1-1/+8
2017-03-27refs: move submodule code out of files-backend.cNguyễn Thái Ngọc Duy1-5/+4
2017-03-27files-backend: make files_log_ref_write() staticNguyễn Thái Ngọc Duy1-4/+0
2017-02-27Merge branch 'mh/submodule-hash'Junio C Hamano1-41/+7
2017-02-27Merge branch 'mh/ref-remove-empty-directory'Junio C Hamano1-7/+15
2017-02-13read_loose_refs(): read refs using resolve_ref_recursively()Michael Haggerty1-0/+5
2017-02-10base_ref_store_init(): remove submodule argumentMichael Haggerty1-4/+3
2017-02-10refs: push the submodule attribute downMichael Haggerty1-13/+0
2017-02-10refs: store submodule ref stores in a hashmapMichael Haggerty1-6/+0
2017-02-10refs: make some ref_store lookup functions privateMichael Haggerty1-19/+0
2017-01-31refs: add option core.logAllRefUpdates = alwaysCornelius Weig1-2/+0
2017-01-07files_transaction_commit(): clean up empty directoriesMichael Haggerty1-2/+9
2017-01-07refname_is_safe(): correct docstringMichael Haggerty1-5/+6
2016-09-09refs: implement iteration over only per-worktree refsDavid Turner1-1/+9
2016-09-09refs: make lock genericDavid Turner1-1/+1
2016-09-09refs: add method to rename refsDavid Turner1-0/+4
2016-09-09refs: add methods to init refs dbDavid Turner1-0/+3
2016-09-09refs: make delete_refs() virtualDavid Turner1-0/+3
2016-09-09refs: add method for initial ref transaction commitDavid Turner1-0/+1
2016-09-09refs: add methods for reflogDavid Turner1-7/+37
2016-09-09refs: add method iterator_beginMichael Haggerty1-12/+12
2016-09-09files_ref_iterator_begin(): take a ref_store argumentMichael Haggerty1-4/+4
2016-09-09refs: make peel_ref() virtualMichael Haggerty1-0/+3
2016-09-09refs: make create_symref() virtualMichael Haggerty1-0/+5
2016-09-09refs: make pack_refs() virtualMichael Haggerty1-0/+4
2016-09-09refs: make verify_refname_available() virtualMichael Haggerty1-0/+7
2016-09-09refs: make read_raw_ref() virtualMichael Haggerty1-17/+19
2016-09-09read_raw_ref(): take a (struct ref_store *) argumentMichael Haggerty1-3/+6
2016-09-09refs: add a transaction_commit() methodRonnie Sahlberg1-0/+5
2016-09-09refs: create a base class "ref_store" for files_ref_storeMichael Haggerty1-0/+78
2016-09-09refs: add a backend method structureRonnie Sahlberg1-0/+8
2016-09-09rename_ref_available(): add docstringDavid Turner1-1/+11
2016-06-20for_each_reflog(): reimplement using iteratorsMichael Haggerty1-0/+7
2016-06-20do_for_each_ref(): reimplement using reference iterationMichael Haggerty1-12/+23
2016-06-20refs: introduce an iterator interfaceMichael Haggerty1-0/+194
2016-06-20refs: use name "prefix" consistentlyMichael Haggerty1-7/+7
2016-06-20do_for_each_ref(): move docstring to the header fileMichael Haggerty1-1/+9
2016-06-13lock_ref_for_update(): don't resolve symrefsMichael Haggerty1-0/+17
2016-06-13refs: resolve symbolic refs firstMichael Haggerty1-2/+9
2016-06-13add_update(): initialize the whole ref_updateMichael Haggerty1-0/+14
2016-06-13verify_refname_available(): adjust constness in declarationMichael Haggerty1-2/+2
2016-06-13refs: allow log-only updatesDavid Turner1-0/+7
2016-06-13ref_transaction_create(): disallow recursive pruningMichael Haggerty1-1/+1
2016-06-13read_raw_ref(): move docstring to header fileMichael Haggerty1-0/+38
2016-06-13read_raw_ref(): rename symref argument to referentMichael Haggerty1-1/+1
2016-06-13read_raw_ref(): rename flags argument to typeMichael Haggerty1-1/+1
2016-04-10refs: move resolve_ref_unsafe into common codeDavid Turner1-0/+6
2016-04-10refs: move for_each_*ref* functions into common codeDavid Turner1-0/+9
2015-11-20refs: break out ref conflict checksDavid Turner1-0/+16
2015-11-20files_log_ref_write: new functionDavid Turner1-0/+4
2015-11-20refs/refs-internal.h: new header fileMichael Haggerty1-0/+180