71 Commits (516680ba7704c473bb21628aa19cabbd787df4db)

Author SHA1 Message Date
Ævar Arnfjörð Bjarmason bc40dfb10a string-list.h users: change to use *_{nodup,dup}() 4 years ago
Han-Wen Nienhuys 617480d75b refs: make explicit that ref_iterator_peel returns boolean 4 years ago
René Scharfe ca56dadb4b use CALLOC_ARRAY 4 years ago
Han-Wen Nienhuys 5085aef4c8 refs: move gitdir into base ref_store 5 years ago
Sun Chao a613d4f817 pack-refs: always refresh after taking the lock file 6 years ago
brian m. carlson 49d166081b refs/packed-backend: express constants using the_hash_algo 7 years ago
Jeff King 9001dc2a74 convert "oidcmp() != 0" to "!oideq()" 7 years ago
Stefan Beller 09427e8366 refs/packed-backend.c: close fd of empty file 7 years ago
Johannes Schindelin 033abf97fc Replace all die("BUG: ...") calls by BUG() ones 7 years ago
Jeff King fb9c2d2703 refs: use chdir_notify to update cached relative paths 7 years ago
Kim Gybels ba41a8b600 packed_ref_cache: don't use mmap() for small files 7 years ago
Michael Haggerty 01caf20d57 load_contents(): don't try to mmap an empty file 7 years ago
Michael Haggerty f34242975f packed_ref_iterator_begin(): make optimization more general 7 years ago
Michael Haggerty 4a14f8d093 find_reference_location(): make function safe for empty snapshots 7 years ago
Michael Haggerty 27a41841ec create_snapshot(): use `xmemdupz()` rather than a strbuf 7 years ago
Michael Haggerty 4a2854f77c struct snapshot: store `start` rather than `header_len` 7 years ago
Michael Haggerty 78fb457968 refs: update some more docs to use "oid" rather than "sha1" 7 years ago
Michael Haggerty 4170188262 write_packed_entry(): take `object_id` arguments 7 years ago
Michael Haggerty 7c6bd25c7d files-backend: don't rewrite the `packed-refs` file unnecessarily 7 years ago
brian m. carlson 99afe91a6c refs: convert read_raw_ref backends to struct object_id 8 years ago
brian m. carlson ac2ed0d7d5 refs: convert peel_object to struct object_id 8 years ago
brian m. carlson 0155f710b8 refs: convert reflog_expire parameter to struct object_id 8 years ago
René Scharfe 72d4a9a721 use strbuf_addstr() for adding strings to strbufs 8 years ago
Michael Haggerty cff28ca94c packed-backend.c: rename a bunch of things and update comments 8 years ago
Michael Haggerty 523ee2d785 mmapped_ref_iterator: inline into `packed_ref_iterator` 8 years ago
Michael Haggerty a6e19bcdad ref_cache: remove support for storing peeled values 8 years ago
Michael Haggerty 9dd389f3d8 packed_ref_store: get rid of the `ref_cache` entirely 8 years ago
Michael Haggerty ba1c052fa6 ref_store: implement `refs_peel_ref()` generically 8 years ago
Michael Haggerty f3987ab36d packed_read_raw_ref(): read the reference from the mmapped buffer 8 years ago
Michael Haggerty d1cf15516f packed_ref_iterator_begin(): iterate using `mmapped_ref_iterator` 8 years ago
Michael Haggerty 02b920f3f7 read_packed_refs(): ensure that references are ordered when read 8 years ago
Michael Haggerty 5b633610ec packed_ref_cache: keep the `packed-refs` file mmapped if possible 8 years ago
Michael Haggerty 14b3c344ea packed-backend.c: reorder some definitions 8 years ago
Michael Haggerty 81b9b5aea7 mmapped_ref_iterator_advance(): no peeled value for broken refs 8 years ago
Michael Haggerty 9cfb3dc0d1 mmapped_ref_iterator: add iterator over a packed-refs file 8 years ago
Michael Haggerty daa45408c1 packed_ref_cache: remember the file-wide peeling state 8 years ago
Michael Haggerty 6a9bc4034a read_packed_refs(): read references with minimal copying 8 years ago
Michael Haggerty a8811695e3 read_packed_refs(): make parsing of the header line more robust 8 years ago
Michael Haggerty 36f23534ae read_packed_refs(): only check for a header at the top of the file 8 years ago
Michael Haggerty 49a03ef466 read_packed_refs(): use mmap to read the `packed-refs` file 8 years ago
Michael Haggerty 735267aa10 die_unterminated_line(), die_invalid_line(): new functions 8 years ago
Michael Haggerty f0a7dc86d2 packed_ref_cache: add a backlink to the associated `packed_ref_store` 8 years ago
Michael Haggerty 8738a8a4df ref_iterator: keep track of whether the iterator output is ordered 8 years ago
Michael Haggerty 9939b33d6a packed-backend: rip out some now-unused code 8 years ago
Michael Haggerty 2fb330ca72 packed_delete_refs(): implement method 8 years ago
Michael Haggerty 2775d8724d packed_ref_store: implement reference transactions 8 years ago
Michael Haggerty 39c8df0cfe packed-backend: don't adjust the reference count on lock/unlock 8 years ago
Jeff King 076aa2cbda tempfile: auto-allocate tempfiles on heap 8 years ago
Jeff King 83a3069a38 lockfile: do not rollback lock on failed close 8 years ago
Michael Haggerty 198b808e20 packed_ref_store: handle a packed-refs file that is a symlink 8 years ago