summaryrefslogtreecommitdiff
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorChen Linxuan <me@black-desk.cn>2026-07-10 14:43:29 +0800
committerJunio C Hamano <gitster@pobox.com>2026-07-10 08:19:15 -0700
commit52bd2ff2741e376ab8b92c354ba64bdf9d1c2c0a (patch)
tree1eeb8d79554498d75cd51a5e93c1b402899b8ed7 /contrib/persistent-https
parente9019fcafe0040228b8631c30f97ae1adb61bcdc (diff)
config: refactor include_by_gitdir() into include_by_path()
The include_by_gitdir() function matches the realpath of a given path against a glob pattern, but its interface is tightly coupled to the gitdir condition: it takes a struct config_options *opts and extracts opts->git_dir internally. Refactor it into a more generic include_by_path() helper that takes a const char *path parameter directly, and update the gitdir and gitdir/i callers to pass opts->git_dir explicitly. No behavior change, just preparing for the addition of a new worktree condition that will reuse the same path-matching logic with a different path. Signed-off-by: Chen Linxuan <me@black-desk.cn> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions