Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/v1/stage0/src/cli_run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22310,6 +22310,19 @@ fn parse_unified_diff_added_paths(diff_text: &str) -> HashSet<String> {
// rename+modify would fail-closed on its unavoidable line-1 change. An in-place
// modify (`diff --git a/PATH b/PATH`, no `rename to`) still touches line 1 with no
// added-side entry, so it stays fail-closed as before.
//
// DECLARED GAP (DESIGN §4b(3)) — copy destinations are NOT enrolled. A `copy to NEW`
// destination is new-at-path by the same argument as `rename to`: every declaration at
// NEW is a newly qualified identity that has never executed under that spelling. It is
// not matched here, so such a file would enroll only the declarations the copy's own
// edited lines reach. POPULATION: empty — the floor's observation is
// `extdeps.git`'s `git.Core.DiffUnified0` (`git diff -U0 <range>`), and git detects copies
// only under `-C`/`--find-copies` or `diff.renames=copies`, neither of which this
// argv nor the repo config sets. TRIGGER: copy detection becoming reachable — the argv
// gaining `-C`, or `diff.renames` being set to `copies` at any config scope — at which
// point the copy destination must be admitted here alongside `rename to`. No branch is
// written for it today: an arm no diff can reach is permanently untested and would be
// cited as coverage it does not provide.
let mut added = HashSet::new();
let mut minus_is_null = false;
for line in diff_text.lines() {
Expand Down
3 changes: 3 additions & 0 deletions src/v1/stage0/src/cli_run/required_floor_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,9 @@ pub(crate) fn floor_diff_edits_from_diff_text(
floor_diff_edits_from_line_ranges(index, &line_ranges, &changed, &departed, &added)
}

// Host realization under a declared scaffold: the governing row is the `SCAFFOLD (DESIGN
// §6–§7)` declaration above `FloorDiffEdits` in `cli_run`, which owns this function's
// reason, dissolve-on trigger and census. Read it there; it is not restated here.
pub(crate) fn floor_diff_edits_from_line_ranges(
index: &MultiEntryIndex,
line_ranges_by_file: &HashMap<String, Vec<FileLineRange>>,
Expand Down
Loading