aboutsummaryrefslogtreecommitdiffstats
path: root/refs/packed-backend.c
AgeCommit message (Expand)AuthorFilesLines
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