From 8abc4770e710776e30866b8e37968f24b89b1d82 Mon Sep 17 00:00:00 2001 From: Cody Martin Date: Fri, 16 Apr 2021 22:48:53 -0700 Subject: [PATCH] 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 --- Documentation/git-filter-repo.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/git-filter-repo.txt b/Documentation/git-filter-repo.txt index bf9baed..2798378 100644 --- a/Documentation/git-filter-repo.txt +++ b/Documentation/git-filter-repo.txt @@ -761,7 +761,7 @@ git filter-repo --paths-from-file stuff-i-want.txt to get a repo containing only the toplevel README.md file, the guides/ and tools/releases/ directories, all python files, files whose name -was of the form YYYY.MM-DD.txt at least two subdirectories deep, and +was of the form YYYY-MM-DD.txt at least two subdirectories deep, and would rename tools/ to scripts/ and rename files like foo/bar/baz.text to bar/foo/baz.txt. Note the special line prefixes of `glob:` and `regex:` and the special string `==>` denoting renames.