aboutsummaryrefslogtreecommitdiffstats
path: root/refs/packed-backend.c
AgeCommit message (Expand)AuthorFilesLines
2024-05-07refs: remove `create_symref` and associated dead codeKarthik Nayak1-1/+0
2024-02-21refs: always treat iterators as orderedPatrick Steinhardt1-1/+1
2024-01-26Merge branch 'ps/worktree-refdb-initialization'Junio C Hamano1-0/+1
2024-01-16Merge branch 'ps/refstorage-extension'Junio C Hamano1-1/+0
2024-01-08Merge branch 'en/header-cleanup'Junio C Hamano1-1/+0
2024-01-08refs: prepare `refs_init_db()` for initializing worktree refsPatrick Steinhardt1-0/+1
2024-01-02refs: refactor logic to look up storage backendsPatrick Steinhardt1-1/+0
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-1/+0
2023-11-17refs: remove `delete_refs` callback from backendsPatrick Steinhardt1-7/+0
2023-11-17refs: deduplicate code to delete referencesPatrick Steinhardt1-44/+1
2023-07-21Merge branch 'tb/refs-exclusion-and-packed-refs'Junio C Hamano1-22/+182
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 Blau1-2/+3
2023-06-21cache.h: remove this no-longer-used headerElijah Newren1-1/+1
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 Hamano1-1/+1
2023-05-12pack-refs: teach --exclude option to exclude refs from being packedJohn Cai1-1/+1
2023-05-09Merge branch 'en/header-split-cache-h-part-2'Junio C Hamano1-0/+1
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-24hash-ll.h: split out of hash.h to remove dependency on repository.hElijah Newren1-0/+1
2023-04-11treewide: remove double forward declaration of read_in_fullElijah Newren1-0/+1
2023-03-21write-or-die.h: move declarations for write-or-die.c functions from cache.hElijah Newren1-0/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2023-03-21treewide: remove unnecessary cache.h inclusion from a few headersElijah Newren1-1/+1
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-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 Nienhuys1-1/+1
2022-09-01git-compat-util.h: use "UNUSED", not "UNUSED(var)"Ævar Arnfjörð Bjarmason1-8/+8
2022-08-19refs: mark unused virtual method parametersJeff King1-6/+8
2022-04-13Revert "Merge branch 'ps/avoid-unnecessary-hook-invocation-with-packed-refs'"Junio C Hamano1-21/+7
2022-03-29Merge branch 'ab/refs-various-fixes'Junio C Hamano1-99/+29
2022-03-25Merge branch 'ps/fsync-refs'Junio C Hamano1-1/+2
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ð Bjarmason1-3/+3
2022-03-17refs: use designated initializers for "struct ref_storage_be"Ævar Arnfjörð Bjarmason1-26/+26
2022-03-15core.fsync: new option to harden referencesPatrick Steinhardt1-1/+2
2022-03-01refs: add ability for backends to special-case reading of symbolic refsPatrick Steinhardt1-0/+1
2022-02-18Merge branch 'ps/avoid-unnecessary-hook-invocation-with-packed-refs'Junio C Hamano1-7/+21
2022-01-17refs: allow passing flags when beginning transactionsPatrick Steinhardt1-1/+1
2022-01-17refs: extract packed_refs_delete_refs() to allow control of transactionPatrick Steinhardt1-6/+20
2021-12-22refs: centralize initialization of the base ref_store.Han-Wen Nienhuys1-4/+2
2021-12-22refs: pass gitdir to packed_ref_store_createHan-Wen Nienhuys1-4/+5
2021-12-10Merge branch 'hn/create-reflog-simplify'Junio C Hamano1-2/+1
2021-11-29Merge branch 'ab/refs-errno-cleanup'Junio C Hamano1-3/+4
2021-11-22refs: drop force_create argument of create_reflog APIHan-Wen Nienhuys1-2/+1
2021-10-25Merge branch 'jt/no-abuse-alternate-odb-for-submodules'Junio C Hamano1-3/+10
2021-10-16refs API: make refs_read_raw_ref() not set errnoHan-Wen Nienhuys1-3/+4
2021-10-08refs: peeling non-the_repository iterators is BUGJonathan Tan1-0/+3
2021-10-08refs: teach arbitrary repo support to iteratorsJonathan Tan1-2/+4
2021-10-08refs: plumb repo into ref storesJonathan Tan1-1/+3
2021-08-25refs: make errno output explicit for read_raw_ref_fnHan-Wen Nienhuys1-4/+4
2021-08-25refs API: remove OID argument to reflog_expire()Ævar Arnfjörð Bjarmason1-1/+1
2021-08-19refs/packet: add missing BUG() invocations to reflog callbacksÆvar Arnfjörð Bjarmason1-0/+5
2021-07-16Merge branch 'ab/struct-init'Junio C Hamano1-1/+1
2021-07-01string-list.h users: change to use *_{nodup,dup}()Ævar Arnfjörð Bjarmason1-1/+1
2021-05-20refs: make explicit that ref_iterator_peel returns booleanHan-Wen Nienhuys1-1/+1
2021-03-13use CALLOC_ARRAYRené Scharfe1-2/+2
2020-08-19refs: move gitdir into base ref_storeHan-Wen Nienhuys1-0/+1
2019-08-02pack-refs: always refresh after taking the lock fileSun Chao1-7/+16
2018-10-15refs/packed-backend: express constants using the_hash_algobrian m. carlson1-7/+7
2018-08-29convert "oidcmp() != 0" to "!oideq()"Jeff King1-1/+1
2018-06-01refs/packed-backend.c: close fd of empty fileStefan Beller1-0/+1
2018-05-06Replace all die("BUG: ...") calls by BUG() onesJohannes Schindelin1-8/+8
2018-03-30refs: use chdir_notify to update cached relative pathsJeff King1-0/+3
2018-02-15Merge branch 'kg/packed-ref-cache-fix'Junio C Hamano1-51/+55
2018-01-24packed_ref_cache: don't use mmap() for small filesKim Gybels1-1/+3
2018-01-24load_contents(): don't try to mmap an empty fileMichael Haggerty1-7/+6
2018-01-24packed_ref_iterator_begin(): make optimization more generalMichael Haggerty1-6/+6
2018-01-24find_reference_location(): make function safe for empty snapshotsMichael Haggerty1-4/+6
2018-01-24create_snapshot(): use `xmemdupz()` rather than a strbufMichael Haggerty1-5/+4
2018-01-24struct snapshot: store `start` rather than `header_len`Michael Haggerty1-31/+33
2017-12-06Merge branch 'mh/avoid-rewriting-packed-refs' into maintJunio C Hamano1-0/+94
2017-11-15Merge branch 'mh/tidy-ref-update-flags'Junio C Hamano1-9/+9
2017-11-15Merge branch 'mh/avoid-rewriting-packed-refs'Junio C Hamano1-0/+94
2017-11-06refs: update some more docs to use "oid" rather than "sha1"Michael Haggerty1-1/+1
2017-11-06write_packed_entry(): take `object_id` argumentsMichael Haggerty1-8/+8
2017-10-30files-backend: don't rewrite the `packed-refs` file unnecessarilyMichael Haggerty1-0/+94
2017-10-16refs: convert read_raw_ref backends to struct object_idbrian m. carlson1-2/+2
2017-10-16refs: convert peel_object to struct object_idbrian m. carlson1-3/+3
2017-10-16refs: convert reflog_expire parameter to struct object_idbrian m. carlson1-1/+1
2017-10-05Merge branch 'rs/cleanup-strbuf-users'Junio C Hamano1-2/+2
2017-10-03Merge branch 'mh/mmap-packed-refs'Junio C Hamano1-237/+742
2017-10-03Merge branch 'sd/branch-copy'Junio C Hamano1-0/+8
2017-10-02use strbuf_addstr() for adding strings to strbufsRené Scharfe1-2/+2
2017-09-25packed-backend.c: rename a bunch of things and update commentsMichael Haggerty1-190/+232
2017-09-25mmapped_ref_iterator: inline into `packed_ref_iterator`Michael Haggerty1-170/+114
2017-09-25ref_cache: remove support for storing peeled valuesMichael Haggerty1-1/+8
2017-09-25packed_ref_store: get rid of the `ref_cache` entirelyMichael Haggerty1-27/+2
2017-09-25ref_store: implement `refs_peel_ref()` genericallyMichael Haggerty1-36/+0
2017-09-25packed_read_raw_ref(): read the reference from the mmapped bufferMichael Haggerty1-5/+9
2017-09-25packed_ref_iterator_begin(): iterate using `mmapped_ref_iterator`Michael Haggerty1-3/+106
2017-09-25read_packed_refs(): ensure that references are ordered when readMichael Haggerty1-11/+212
2017-09-25packed_ref_cache: keep the `packed-refs` file mmapped if possibleMichael Haggerty1-42/+143
2017-09-25packed-backend.c: reorder some definitionsMichael Haggerty1-24/+24
2017-09-25mmapped_ref_iterator_advance(): no peeled value for broken refsMichael Haggerty1-2/+8
2017-09-25mmapped_ref_iterator: add iterator over a packed-refs fileMichael Haggerty1-55/+152
2017-09-25packed_ref_cache: remember the file-wide peeling stateMichael Haggerty1-5/+12
2017-09-25read_packed_refs(): read references with minimal copyingMichael Haggerty1-61/+40
2017-09-19Merge branch 'mh/packed-ref-transactions'Junio C Hamano1-152/+310
2017-09-14read_packed_refs(): make parsing of the header line more robustMichael Haggerty1-6/+15
2017-09-14read_packed_refs(): only check for a header at the top of the fileMichael Haggerty1-11/+24
2017-09-14read_packed_refs(): use mmap to read the `packed-refs` fileMichael Haggerty1-10/+32
2017-09-14die_unterminated_line(), die_invalid_line(): new functionsMichael Haggerty1-3/+25
2017-09-14packed_ref_cache: add a backlink to the associated `packed_ref_store`Michael Haggerty1-7/+16
2017-09-14ref_iterator: keep track of whether the iterator output is orderedMichael Haggerty1-1/+1
2017-09-09packed-backend: rip out some now-unused codeMichael Haggerty1-193/+0
2017-09-09packed_delete_refs(): implement methodMichael Haggerty1-1/+44
2017-09-09packed_ref_store: implement reference transactionsMichael Haggerty1-3/+310
2017-09-09packed-backend: don't adjust the reference count on lock/unlockMichael Haggerty1-5/+5
2017-09-06tempfile: auto-allocate tempfiles on heapJeff King1-5/+6
2017-09-06lockfile: do not rollback lock on failed closeJeff King1-1/+2
2017-08-22Merge branch 'mh/packed-ref-store'Junio C Hamano1-0/+885
2017-07-27packed_ref_store: handle a packed-refs file that is a symlinkMichael Haggerty1-6/+18
2017-07-03read_packed_refs(): die if `packed-refs` contains bogus dataMichael Haggerty1-3/+7
2017-07-03repack_without_refs(): don't lock or unlock the packed refsMichael Haggerty1-24/+8
2017-06-23commit_packed_refs(): remove call to `packed_refs_unlock()`Michael Haggerty1-10/+8
2017-06-23clear_packed_ref_cache(): don't protest if the lock is heldMichael Haggerty1-2/+0
2017-06-23packed_refs_unlock(), packed_refs_is_locked(): new functionsMichael Haggerty1-6/+25
2017-06-23packed_refs_lock(): report errors via a `struct strbuf *err`Michael Haggerty1-6/+11
2017-06-23packed_refs_lock(): function renamed from lock_packed_refs()Michael Haggerty1-5/+5
2017-06-23commit_packed_refs(): use a staging file separate from the lockfileMichael Haggerty1-8/+32
2017-06-23commit_packed_refs(): report errors rather than dyingMichael Haggerty1-30/+55
2017-06-23packed_ref_store: make class into a subclass of `ref_store`Michael Haggerty1-20/+212
2017-06-23packed-backend: new module for handling packed referencesMichael Haggerty1-0/+623