Replies: 4 comments 8 replies
-
Initially, git would just let you do So I would lean towards creating the branches automatically. To make this safer, it might be interesting to have a "user prefix" so I could configure a Hmm, started my notes on the idea: gitext-rs/git-stack#241 |
Beta Was this translation helpful? Give feedback.
-
Besides a question of defaults, the fact that you would be implicitly generating branch names (assuming the user is on a branch) would be reason enough to make |
Beta Was this translation helpful? Give feedback.
-
I think always push the whole stack, that's sort of the point of the command, if you want to push
I think a configuration option makes sense here. I think the two options should be
|
Beta Was this translation helpful? Give feedback.
-
I think it would be nice to have a checking method for stacked branch. SampleGoal
StepThe example below included an implicit api and an explicit api. (I don't know what api you like)
To sum up, it's as follows. ## Implicit api - multiple marking
git stack 3a05375e 28baf953 882b958c # 3a05375e can be omitted
git stack submit
## Implicit api - each marking
git checkout 28baf953 && git stack
git checkout 882b958c && git stack
git stack submit
## Implicit api - each commit marking
git stack "*"
git stack submit
# Explicit api - multiple marking
git stack start # Start from 3a05375e
git stack add 28baf953 882b958c
git stack end
git stack submit Manage
|
Beta Was this translation helpful? Give feedback.
-
I recently committed a
git submit
command tomaster
. It just force-pushes a certain set of branches to their respective remotes.Currently:
stack()
. Is that a reasonable default, or is.
a better default and the user should have to explicitly write/alias something to push branches in thr current stack?--create
to do so. Is this sensible? I vote yes, since it's a somewhat side-effectful operation. But, then again, so is force-pushing branches at all.I'd like to have
git submit
support both of these workflows:The 1:1 approach suggests to me that
git submit
should be able to synthesize branches to push (jj does this), since there would be a lot of branches to manage. But which of these behaviors should be the default, and how should we opt into the other one?Since GitHub by default take a n:1 approach, it seems like we should accommodate that by default, and have users opt into a 1:1 workflow with some kind of configuration setting. We could also auto-configure the default behavior of the remote based on whether we think it's GitHub or GitLab, etc.
According to the git-branchless user survey, 8 respondents primarily use GitHub, 3 use GitLab, and 0 use others. (If you haven't already, you can take the user survey here.) You can also see the Stack Overflow developer survey results here: https://survey.stackoverflow.co/2022/#section-version-control-version-control-platforms (top 3 are GitHub, GitLab, BitBucket).
Beta Was this translation helpful? Give feedback.
All reactions