diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-09-25 10:00:18 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-25 18:02:46 +0900 |
commit | cff28ca94cca0fd4712aa37f6ca93430bb3351d8 (patch) | |
tree | a369ba0590e95c6bc2d548b7bcbedd5bf43acd52 /refs.c | |
parent | 523ee2d7858a6b1c09ba550fd1710ebfeff27335 (diff) | |
download | git-cff28ca94cca0fd4712aa37f6ca93430bb3351d8.tar.gz |
packed-backend.c: rename a bunch of things and update commentsmh/mmap-packed-refs
We've made huge changes to this file, and some of the old names and
comments are no longer very fitting. So rename a bunch of things:
* `struct packed_ref_cache` → `struct snapshot`
* `acquire_packed_ref_cache()` → `acquire_snapshot()`
* `release_packed_ref_buffer()` → `clear_snapshot_buffer()`
* `release_packed_ref_cache()` → `release_snapshot()`
* `clear_packed_ref_cache()` → `clear_snapshot()`
* `struct packed_ref_entry` → `struct snapshot_record`
* `cmp_packed_ref_entries()` → `cmp_packed_ref_records()`
* `cmp_entry_to_refname()` → `cmp_record_to_refname()`
* `sort_packed_refs()` → `sort_snapshot()`
* `read_packed_refs()` → `create_snapshot()`
* `validate_packed_ref_cache()` → `validate_snapshot()`
* `get_packed_ref_cache()` → `get_snapshot()`
* Renamed local variables and struct members accordingly.
Also update a bunch of comments to reflect the renaming and the
accumulated changes that the code has undergone.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.c')
0 files changed, 0 insertions, 0 deletions