Get the remote and branch name from a full branch name that may include a remote prefix.
If the path doesn't start with one of options.knownRemotes (but has multiple segments),
the actual list of remotes will be fetched to see if one of those matches.
NOTE: The additional verification is new in the object params version; the original version
incorrectly assumes the first segment before a slash is always a remote.
Parameters
options: ParseRemoteBranchOptions
Returns ParsedRemoteBranch
parseRemoteBranch(branch): ParsedRemoteBranch
Parameters
branch: string
Returns ParsedRemoteBranch
Deprecated
Use object params version, which does more verification. This version inaccurately
assumes the first segment before a slash is always a remote, which could lead to tricky bugs.
Get the remote and branch name from a full branch name that may include a remote prefix. If the path doesn't start with one of
options.knownRemotes(but has multiple segments), the actual list of remotes will be fetched to see if one of those matches.NOTE: The additional verification is new in the object params version; the original version incorrectly assumes the first segment before a slash is always a remote.