worktree: escape files that start with '#' or '!' while ignoring#4446
worktree: escape files that start with '#' or '!' while ignoring#4446azarmadr wants to merge 3 commits intojesseduffield:masterfrom
Conversation
|
This looks good, but I wonder if we can take this opportunity to also fix #4075. I imagine we could use a regex that catches all of these (something like |
|
used string commands only, if that's ok |
But why, using a regex is much less code. Also, I would have expected a bit more research which other characters we need to escape that weren't mentioned in the issue (turns out we also need I found it easier to make these changes myself than to tell you what I would like to have added, so I opened a new PR for this. Next time you make a PR, please create a branch instead of using the master branch of your fork. This would have allowed my to add these changes directly to your PR, and I wouldn't have had to open a new one. |
|
This has been addressed by #4475; closing. |
PR Description
Please check if the PR fulfills these requirements
go generate ./...)fixes #4445