Repository navigation
docs: collapsible, verified usage examples - #15
Merged
Merged
Conversation
--dry-run reports the replacements that would be made, --diff prints them as unified diff. Neither writes a file. Both require --replace.
… clean patch - A match that leaves the text unchanged (e.g. foo -> foo) produced an empty diff, and PrintDiff threw ArgumentOutOfRangeException on it. - With -v, the 'Progressing' and per-match lines went to stdout and corrupted the patch. With --diff they now go to stderr.
- Help text and README: --diff replaces the summary and implies --dry-run. - README: git apply -p0 works with relative paths. - Tests: -n with -d, several files, file without trailing newline.
…diff # Conflicts: # README.md
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
<details>blocks. Each one is a self-contained walkthrough with the starting files, the command and the exact output.--filter,--case-sensitive,--only-matching/--max-count, replace with a named group,--dry-run, and--difffollowed bypatch.main: the--diff … (implies --dry-run)option text and thepatch -p0/git apply -p0note.The
--dry-run/--difffeature itself is already onmain; this PR only touchesREADME.md.Test plan
dotnet test, 55 tests pass locally)