-
Notifications
You must be signed in to change notification settings - Fork 10
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
Branches prefix has high collision rate and make branches difficult to find #46
Comments
I must admit the
I concur that one of the downsides of incorporating the contributor's name is that it entangles the "changer" with the "change". On the likelihood of collisions with the My preference (at least within Search Squad), would be something that incorporates The initials pattern is so far very established, though, so adoption might be slow. |
One thought: Perhaps the pattern that CP8 uses could be made configurable, to allow teams to adopt their own conventions in their repositories? It'd be another first-run option, in addition to the repo access token. |
Ah, the intent isn't really to have an entirely unique identifier or add significance to the branch name, it's mainly a way to:
ie for me:
You may indeed have to share that namespace with someone else however.
We haven't really found this to be an issue I guess! In general I think we pay little attention to the branch names themselves - they are disposable! Coming from that philosophy, allowing complete customization of the prefix perhaps feels a little "heavy"? I can imagine however making prefixing itself optional (as suggested above), but I'd be curious first to hear a bit more about how the current setup is impacting your day-to-day, and how doing so would address those problems. I'm getting the impression that somehow the branch names themselves play a bigger role in your current workflow! 😅 |
At the moment, cp8 generates branches prefixed with authors initials. This is problematic, because collisions with someone else in the same repository are likely.
On a related note, why is user name prefix used in the first place? It discourages collaboration (branch is "owned") and makes older branches difficult to find (do you always know who opened it?).
Alternative suggestions:
<ticket number>_<summary>
: Does it even need to be nested under anything? The type is irrelevant when looking for a branch name. People usually know the ticket number.feature/<ticket number>_<summary>
: GitFlow approach.<ticket number>_<ticket type>_<summary>
: If a ticket type is a must have. This will at least list branches by number.<github user name>/<ticket number>_<ticket type>_<summary>
: No collisions, ordered by ticket number rather than type.The text was updated successfully, but these errors were encountered: