summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorK Jayatheerth <jayatheerthkulkarni2005@gmail.com>2026-03-04 18:35:02 +0530
committerJunio C Hamano <gitster@pobox.com>2026-03-04 09:06:30 -0800
commitb22ed4c4f9667d400744d0ab013745720d91b8d4 (patch)
treefb7c129cac0de4b85dd15b136f227edbb516200d /contrib/persistent-https
parent61d0b79e4c2dffa27c89b409aaa084deb0ed2172 (diff)
downloadgit-b22ed4c4f9667d400744d0ab013745720d91b8d4.tar.gz
git-b22ed4c4f9667d400744d0ab013745720d91b8d4.zip
path: remove redundant function calls
repo_settings_get_shared_repository() is invoked multiple times in calc_shared_perm(). While the function internally caches the value, repeated calls still add unnecessary noise. Store the result in a local variable and reuse it instead. This makes it explicit that the value is expected to remain constant and avoids repeated calls in the same scope. Signed-off-by: K Jayatheerth <jayatheerthkulkarni2005@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions