]> git.99rst.org Git - git.git/commit
remote set-head: refactor for readability
authorBence Ferdinandy <redacted>
Fri, 22 Nov 2024 12:28:46 +0000 (13:28 +0100)
committerJunio C Hamano <redacted>
Mon, 25 Nov 2024 02:46:35 +0000 (11:46 +0900)
commit4f07c45e25810700cec57c6b01ca9ff97bfb6840
treefeb9624472c3c0c7a4422d8d2aba4d009139502b
parentd842cd130122c6f3d3019d467040570d7d001f7a
remote set-head: refactor for readability

Make two different readability refactors:

Rename strbufs "buf" and "buf2" to something more explanatory.

Instead of calling get_main_ref_store(the_repository) multiple times,
call it once and store the result in a new refs variable. Although this
change probably offers some performance benefits, the main purpose is to
shorten the line lengths of function calls using this variable.

Signed-off-by: Bence Ferdinandy <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/remote.c
git clone https://git.99rst.org/PROJECT