git-utils: consume confined staging candidates

This commit is contained in:
Chris Bookholt
2026-07-01 09:57:14 -07:00
parent 7cdf6b09bc
commit 4c0a1feded
2 changed files with 24 additions and 4 deletions
+3 -1
View File
@@ -475,13 +475,15 @@ fn assert_longest_existing_alias_prefix_carries_unresolved_suffix() {
assert_eq!(
confine_patch_paths(&git, root, &paths)
.expect("confine exact leaves")
.into_exact_leaves(),
.into_exact_leaves()
.expect("extract exact leaves"),
paths
);
assert!(
confine_patch_paths(&git, root, &[])
.unwrap()
.into_exact_leaves()
.expect("extract no exact leaves")
.is_empty()
);
use ConfinedPathOrigin::*;