You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That would work for matching, but because the current design (which has problems like #7 anyway) uses the same regex for matching and removal, that change wouldn't work. It would lead to pr names looking like "origin/pr-name".
As @calebwherry said in the original issue:
> Using origin can cause issues with others not using that wordage.
> Replace with "not slash" match as it can be anything.
I tried to be clever and match hyphenated words, but then I tried to
look up the actual definition of a remote name, and there does not seem
to be one: https://stackoverflow.com/questions/41461152/which-characters-are-illegal-within-a-git-remote-name/41462742
So, it seems like the best thing to do is detect whatever isn't a slash,
because we know those *can't* be allowed, since they are allowed in
branch names (and therefore any ref with slashes in the remote or
branch would parse ambiguously). Whatever else git tells us is obviously
valid, since git is the authority here.
Using origin can cause issues with others not using that wordage. Replace with "not slash" match as it can be anything.
Originally posted by @calebwherry in #1 (comment)
The text was updated successfully, but these errors were encountered: