]> git.99rst.org Git - git.git/commit
setup: rename `check_repository_format_gently()`
authorPatrick Steinhardt <redacted>
Tue, 7 Jul 2026 07:21:20 +0000 (09:21 +0200)
committerJunio C Hamano <redacted>
Tue, 7 Jul 2026 17:49:40 +0000 (10:49 -0700)
commit9ca3ea9881a1c1e238820ce3f6a63f6ad6fce4d5
treed506d248ddbc3afb15fed35a75815065275e4147
parentcd4c25d9e950576cb0f78010719e1d3bd478bf4e
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
setup.c
git clone https://git.99rst.org/PROJECT