diff options
author | Bence Ferdinandy <bence@ferdinandy.com> | 2024-11-22 13:28:46 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-11-25 11:46:35 +0900 |
commit | 4f07c45e25810700cec57c6b01ca9ff97bfb6840 (patch) | |
tree | feb9624472c3c0c7a4422d8d2aba4d009139502b /git-gui/lib/commit.tcl | |
parent | d842cd130122c6f3d3019d467040570d7d001f7a (diff) |
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 <bence@ferdinandy.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib/commit.tcl')
0 files changed, 0 insertions, 0 deletions