explain-git-with-d3
explain-git-with-d3 copied to clipboard
Cannot commit to branch with `/` in name
Simple Description
I cannot commit to branches with the / character, and I assume there may be other valid git branch names with special characters that might fail in this app.
Reproduction
- Start app clean
-
git checkout -b feat/a - New branch not highlighted, despite the fact that
HEADpoints to the appropriate commit -
git commit - No new commit node in graph and receive the following error in console
Not a good idea to make commits while in a detached HEAD state.
-
git checkout -b feat-b - New branch highlighted and
HEADpoints to appropriate commit -
git commit - New node added, branch moved,
HEADfollows; all as expected
Expectation
I've seen many orgs that use / in branch names for things like release/9.5, bug/PROD-1234, feat/SOME-9876. Would be nice to allow / in the name and maybe investigate other valid special characters in branch names and allow them.