summaryrefslogtreecommitdiff
path: root/refs/packed-backend.c
AgeCommit message (Expand)AuthorFilesLines
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-235/+740
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-151/+309
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