Skip to content

Commit 8abc477

Browse files
committed
git-filter-repo.txt: fix typo in paths-from-file example
The "Filtering based on many paths" section includes this code snippet, ``` regex:^.*/.*/[0-9]{4}-[0-9]{2}-[0-9]{2}.txt$ ``` and this text ``` files whose name was of the form YYYY.MM-DD.txt at least two subdirectories deep ``` Update the text to YYYY-MM-DD.txt to correctly match the regex in the code snippet. Signed-off-by: Cody Martin <[email protected]>
1 parent 75e67bc commit 8abc477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/git-filter-repo.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ git filter-repo --paths-from-file stuff-i-want.txt
761761

762762
to get a repo containing only the toplevel README.md file, the guides/
763763
and tools/releases/ directories, all python files, files whose name
764-
was of the form YYYY.MM-DD.txt at least two subdirectories deep, and
764+
was of the form YYYY-MM-DD.txt at least two subdirectories deep, and
765765
would rename tools/ to scripts/ and rename files like foo/bar/baz.text
766766
to bar/foo/baz.txt. Note the special line prefixes of `glob:` and
767767
`regex:` and the special string `==>` denoting renames.

0 commit comments

Comments
 (0)