Skip to content

Commit 538803d

Browse files
committed
config(normalize): allow callers to skip cwd label contraction
1 parent 66b093e commit 538803d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vcspull/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,7 @@ def normalize_workspace_roots(
617617
*,
618618
cwd: pathlib.Path | None = None,
619619
home: pathlib.Path | None = None,
620+
preserve_cwd_label: bool = True,
620621
) -> tuple[dict[str, t.Any], dict[pathlib.Path, str], list[str], int]:
621622
"""Normalize workspace root labels and merge duplicate sections."""
622623
cwd = cwd or pathlib.Path.cwd()
@@ -636,6 +637,7 @@ def normalize_workspace_roots(
636637
canonical_path,
637638
cwd=cwd,
638639
home=home,
640+
preserve_cwd_label=preserve_cwd_label,
639641
)
640642
path_to_label[canonical_path] = normalized_label
641643

0 commit comments

Comments
 (0)