Repository navigation
fix: correct --files-from operand assembly and implied --relative handling - #2859
Merged
Merged
Conversation
…dling When --files-from is active, the source directory should serve only as a base for resolving file list entries, not appear as a separate transfer operand. This caused duplicate source paths and incorrect file placement. Additionally, --files-from implies --relative (upstream options.c:2187), so file list entries are now joined with a ./ marker (e.g., /src/./file.txt) enabling the engine's relative_root() to strip the base prefix correctly. upstream: main.c:780-790 - source dir is chdir target, not transfer source
2 tasks
oferchen
added a commit
that referenced
this pull request
May 1, 2026
…dling (#2859) * fix: correct --files-from operand assembly and implied --relative handling When --files-from is active, the source directory should serve only as a base for resolving file list entries, not appear as a separate transfer operand. This caused duplicate source paths and incorrect file placement. Additionally, --files-from implies --relative (upstream options.c:2187), so file list entries are now joined with a ./ marker (e.g., /src/./file.txt) enabling the engine's relative_root() to strip the base prefix correctly. upstream: main.c:780-790 - source dir is chdir target, not transfer source * style: fix cargo fmt in files_from operand assembly
oferchen
added a commit
that referenced
this pull request
May 5, 2026
…dling (#2859) * fix: correct --files-from operand assembly and implied --relative handling When --files-from is active, the source directory should serve only as a base for resolving file list entries, not appear as a separate transfer operand. This caused duplicate source paths and incorrect file placement. Additionally, --files-from implies --relative (upstream options.c:2187), so file list entries are now joined with a ./ marker (e.g., /src/./file.txt) enabling the engine's relative_root() to strip the base prefix correctly. upstream: main.c:780-790 - source dir is chdir target, not transfer source * style: fix cargo fmt in files_from operand assembly
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
--files-fromis active, the source directory now serves only as a base for resolving file list entries, not as a separate transfer operand./marker (e.g.,/src/./file.txt) so the engine'srelative_root()strips the base prefix correctlyfiles_fromintegration tests introduced by PR fix: apply upstream option interactions when --files-from is active #2762Upstream Reference
options.c:2187-2188---files-fromimplies--relativemain.c:780-790- source dir is chdir target, not a transfer sourceTest plan
files_from_integration_with_recursive_copies_nested_filesexpectations to match upstream--relativebehaviorfiles_from_active=truepath inresolve_file_list_entriesresolve_file_list_entriestests updated to pass new parameter