-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Branch names with dashes between the words #248
Comments
Well spotted, thanks for opening this. As the levels were contributed from many contributors, it is likely that some had their own convention for branch names. I'd be happy for a PR that standardises this to use |
To start with, the https://github.com/Gazler/githug#writing-levels section should mention that branch names should use dashes, so that any new levels that are created will use that style. |
Should repository names and tags also use dashes?
githug/levels/clone_to_folder.rb Lines 2 to 5 in 6b4c41d
Line 16 in 2544b01
|
The
they seem to be listed here: can they be renamed directly or is there some git commands somewhere else that creates them? |
The Line 2 in 6b4c41d
https://github.com/Gazler/githug/tree/2544b01546d00165cd7f7059b965be85e1e15006/levels/conflict/.githug/refs/heads Should it be called |
I think that makes sense.
They can be renamed directly, the files are a reference to a sha, so should be fine.
Sounds good to me! |
Most if not all branch names have used underscores between the words until level 42.
But in:
Name: rebase_onto
Level: 41
Difficulty: **
One of the branch names
readme-update
uses a dash between the words. The other branchwrong_branch
uses an underscore.When searching in this
githug
repository forreadme-update
, then two files are listed:levels/rebase_onto.rb
has 3 instances:githug/levels/rebase_onto.rb
Line 22 in 2544b01
githug/levels/rebase_onto.rb
Lines 36 to 37 in 2544b01
spec/githug_spec.rb
has 2 instances:githug/spec/githug_spec.rb
Lines 241 to 242 in 2544b01
While scrolling through
spec/githug_spec.rb
, I noticed another branch that also use dashes:long-feature-branch
levels/merge_squash.rb
has 3 instances:githug/levels/merge_squash.rb
Line 2 in 2544b01
githug/levels/merge_squash.rb
Line 11 in 2544b01
githug/levels/merge_squash.rb
Line 37 in 2544b01
spec/githug_spec.rb
has 1 instance:githug/spec/githug_spec.rb
Line 270 in 2544b01
And while writing this I noticed this name
new-feature
, but I'm not sure if it's a branch name or a git command name. It's listed 1 time here:githug/spec/githug_spec.rb
Line 252 in 2544b01
And 4 times here:
https://github.com/Gazler/githug/blob/2544b01546d00165cd7f7059b965be85e1e15006/levels/cherry-pick/.githug/logs/HEAD
I didn't open a PR because I'm not sure if one/some/all dash names are there for a reason.
The text was updated successfully, but these errors were encountered: