66 Commits (763b47bafab6f781dc52461985b3300d447d1332)

Author SHA1 Message Date
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 6 years ago
Jeff King 9001dc2a74 convert "oidcmp() != 0" to "!oideq()" 6 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 7 years ago
brian m. carlson ac2ed0d7d5 refs: convert peel_object to struct object_id 7 years ago
brian m. carlson 0155f710b8 refs: convert reflog_expire parameter to struct object_id 7 years ago
René Scharfe 72d4a9a721 use strbuf_addstr() for adding strings to strbufs 7 years ago
Michael Haggerty cff28ca94c packed-backend.c: rename a bunch of things and update comments 7 years ago
Michael Haggerty 523ee2d785 mmapped_ref_iterator: inline into `packed_ref_iterator` 7 years ago
Michael Haggerty a6e19bcdad ref_cache: remove support for storing peeled values 7 years ago
Michael Haggerty 9dd389f3d8 packed_ref_store: get rid of the `ref_cache` entirely 7 years ago
Michael Haggerty ba1c052fa6 ref_store: implement `refs_peel_ref()` generically 7 years ago
Michael Haggerty f3987ab36d packed_read_raw_ref(): read the reference from the mmapped buffer 7 years ago
Michael Haggerty d1cf15516f packed_ref_iterator_begin(): iterate using `mmapped_ref_iterator` 7 years ago
Michael Haggerty 02b920f3f7 read_packed_refs(): ensure that references are ordered when read 7 years ago
Michael Haggerty 5b633610ec packed_ref_cache: keep the `packed-refs` file mmapped if possible 7 years ago
Michael Haggerty 14b3c344ea packed-backend.c: reorder some definitions 7 years ago
Michael Haggerty 81b9b5aea7 mmapped_ref_iterator_advance(): no peeled value for broken refs 7 years ago
Michael Haggerty 9cfb3dc0d1 mmapped_ref_iterator: add iterator over a packed-refs file 7 years ago
Michael Haggerty daa45408c1 packed_ref_cache: remember the file-wide peeling state 7 years ago
Michael Haggerty 6a9bc4034a read_packed_refs(): read references with minimal copying 7 years ago
Michael Haggerty a8811695e3 read_packed_refs(): make parsing of the header line more robust 7 years ago
Michael Haggerty 36f23534ae read_packed_refs(): only check for a header at the top of the file 7 years ago
Michael Haggerty 49a03ef466 read_packed_refs(): use mmap to read the `packed-refs` file 7 years ago
Michael Haggerty 735267aa10 die_unterminated_line(), die_invalid_line(): new functions 7 years ago
Michael Haggerty f0a7dc86d2 packed_ref_cache: add a backlink to the associated `packed_ref_store` 7 years ago
Michael Haggerty 8738a8a4df ref_iterator: keep track of whether the iterator output is ordered 7 years ago
Michael Haggerty 9939b33d6a packed-backend: rip out some now-unused code 7 years ago
Michael Haggerty 2fb330ca72 packed_delete_refs(): implement method 7 years ago
Michael Haggerty 2775d8724d packed_ref_store: implement reference transactions 7 years ago
Michael Haggerty 39c8df0cfe packed-backend: don't adjust the reference count on lock/unlock 7 years ago
Jeff King 076aa2cbda tempfile: auto-allocate tempfiles on heap 7 years ago
Jeff King 83a3069a38 lockfile: do not rollback lock on failed close 7 years ago
Michael Haggerty 198b808e20 packed_ref_store: handle a packed-refs file that is a symlink 8 years ago
Michael Haggerty 9308b7f3ca read_packed_refs(): die if `packed-refs` contains bogus data 8 years ago
Michael Haggerty e5cc7d7d2b repack_without_refs(): don't lock or unlock the packed refs 8 years ago
Michael Haggerty 42c7f7ff96 commit_packed_refs(): remove call to `packed_refs_unlock()` 8 years ago
Michael Haggerty 9051198214 clear_packed_ref_cache(): don't protest if the lock is held 8 years ago