fix(git): Support quoted branch names

Fixes #3725
This commit is contained in:
Richard Gibson
2022-10-26 16:57:19 -04:00
parent fb9127ecc6
commit caf95dec86
4 changed files with 51 additions and 21 deletions

View File

@@ -165,7 +165,7 @@ In this example, we have given custom tags to the commits. Also, see how we have
### Create a new branch
In Mermaid, in-order to create a new branch, you make use of the `branch` keyword. You also need to provide a name of the new branch. The name has to be unique and cannot be that of an existing branch. Usage example: `branch develop`
In Mermaid, in-order to create a new branch, you make use of the `branch` keyword. You also need to provide a name of the new branch. The name has to be unique and cannot be that of an existing branch. A branch name that could be confused for a keyword must be quoted within `""`. Usage example: `branch develop`
When Mermaid, reads the `branch` keyword, it creates a new branch and sets it as the current branch. Equivalent to you creating a new branch and checking it out in Git world.