summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorPushkar Singh <pushkarkumarsingh1970@gmail.com>2026-02-21 11:05:12 +0000
committerJunio C Hamano <gitster@pobox.com>2026-02-21 21:25:56 -0800
commit40b30f245d57f89215f89c29b72e8b557f09b82a (patch)
tree5cd9936acc0853ac248dadde78e3c3313bd9e0c9 /contrib/persistent-https
parent7c02d39fc2ed2702223c7674f73150d9a7e61ba4 (diff)
downloadgit-40b30f245d57f89215f89c29b72e8b557f09b82a.tar.gz
git-40b30f245d57f89215f89c29b72e8b557f09b82a.zip
path: factor out skip_slashes() in normalize_path_copy_len()
Extract skip_slashes() to avoid repeating the same is_dir_sep() loop in multiple places inside normalize_path_copy_len(). Keep the dot-component handling inline to preserve the original control flow and readability, as suggested in review. No functional changes. Behavior verified with t0060-path-utils.sh. Signed-off-by: Pushkar Singh <pushkarkumarsingh1970@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions