diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-07-07 09:21:20 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-07-07 10:49:40 -0700 |
| commit | 9ca3ea9881a1c1e238820ce3f6a63f6ad6fce4d5 (patch) | |
| tree | d506d248ddbc3afb15fed35a75815065275e4147 /git-commit-script | |
| parent | cd4c25d9e950576cb0f78010719e1d3bd478bf4e (diff) | |
setup: rename `check_repository_format_gently()`
The function `check_repository_format_gently()` receives a format as
input. An unknowing reader may thus suspect that this function actually
checks the passed-in format for consistency. While the function indeed
checks the repository format, it actually serves two purposes:
- It reads the repository's format and populates the passed-in format
with that information.
- It then indeed checks whether the format is consistent.
Rename the function to `read_and_verify_repository_format()` to clarify
its functionality. While at it, reorder the parameters so that the
format comes first to better match other functions that pass around the
format.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-commit-script')
0 files changed, 0 insertions, 0 deletions
