353 Commits (dae2ff9bb6112bbac0a9bee1e524ae0b3ad316fb)

Author SHA1 Message Date
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
SZEDER Gábor f919ffebed Use MOVE_ARRAY 7 years ago
Mathias Rav 81fcb698e0 files_initial_transaction_commit(): only unlock if locked 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 acedcde76d refs: rename constant `REF_ISPRUNING` to `REF_IS_PRUNING` 7 years ago
Michael Haggerty 91774afcc3 refs: rename constant `REF_NODEREF` to `REF_NO_DEREF` 7 years ago
Michael Haggerty 5ac95fee3d refs: tidy up and adjust visibility of the `ref_update` flags 7 years ago
Michael Haggerty 62c72d1fd0 ref_transaction_add_update(): remove a check 7 years ago
Michael Haggerty b00f3cfa92 prune_ref(): call `ref_transaction_add_update()` directly 7 years ago
Michael Haggerty b0ca411051 files_transaction_prepare(): don't leak flags to packed transaction 7 years ago
Michael Haggerty 7c6bd25c7d files-backend: don't rewrite the `packed-refs` file unnecessarily 7 years ago
Michael Haggerty da5267f1b6 files_transaction_prepare(): fix handling of ref lock failure 7 years ago
brian m. carlson 4f01e5080c refs/files-backend: convert static functions to object_id 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 49e61479be refs: convert resolve_ref_unsafe to struct object_id 7 years ago
brian m. carlson 0155f710b8 refs: convert reflog_expire parameter to struct object_id 7 years ago
brian m. carlson 34c290a6fc refs: convert read_ref and read_ref_full to object_id 7 years ago
brian m. carlson 89f3bbdd3b refs: update ref transactions to use struct object_id 7 years ago
brian m. carlson 2616a5e508 refs: convert delete_ref and refs_delete_ref to struct object_id 7 years ago
brian m. carlson 49e9958869 refs/files-backend: convert struct ref_to_prune to object_id 7 years ago
René Scharfe 72d4a9a721 use strbuf_addstr() for adding strings to strbufs 7 years ago
René Scharfe 872ccb2c69 refs: pass NULL to refs_resolve_refdup() if hash is not needed 7 years ago
Jeff King 88780c37b3 files-backend: prefer "0" for write_in_full() error check 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
René Scharfe e691b027b6 refs: pass NULL to refs_resolve_ref_unsafe() if hash is not needed 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