Repository navigation
Conversation
A subtree rename `src` of `./` names the whole offer, so
`take = [{ "./" = "apm" }]` deploys every offered leaf under `apm/`.
A more specific subtree or leaf rename still wins.
A binding-level `dest = "apm"` is the same re-root without a `take`;
combining it with `take` or `history` is a config error. `phora bind`
and `phora add --to` write it with `--dest`.
`dest` was a second spelling of `take = [{ "./" = dest }]` and overlapped
`layout = "by-source"` with the binding identity; combined, the two nested
the directory twice. The `./` subtree rename stays.
Owner
Author
|
Closing: two targets on one path with different layouts cover this, and sync rejects cross-target overlaps (src/sync/mod.rs:889). henia uses layout = "by-source". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
srcof"./"names the whole offer:take = [{ "./" = "apm" }]deploys every offered leaf underapm/. Longest-prefix-wins still lets a more specific subtree or leaf rename win.subtree_prefixinsrc/projection/take.rsis the one owner of subtree-prefix matching, shared withclassify_take_errorinsrc/projection/build.rs.take.rs; README note under Subtree renames, pointing atlayout = "by-source"for one directory per binding across a target.A binding-level
destwas prototyped and dropped (fbd6bac): it duplicatedtakeand overlappedby-source+ identity, nesting the directory twice when combined.