-
Notifications
You must be signed in to change notification settings - Fork 383
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
FR: jj git push -b should imply -N when there is only one remote #5512
Comments
I am not sure this is fully resolved (though I think the urgency should be much decreased by f9906dc). I have not followed the entirety of #5094, but naively, some possible additional steps I could imagine taking are:
I'm not suggesting that either is necessarily a great idea (in fact, I don't really like option 1, since a repo with one remote can get another remote added later), but I think we might want to have a discussion of whether something like 2 is reasonable. It makes perfect sense to me to keep #5094 closed and have a separate thread for further fine-tuning. At the same time, some people might want a bit of a break before looking at this issue again. A break is also good for people to have time to try out the new option and see how it works for them. |
I'm also wondering whether something like #5472 will help. I almost have a prototype for that done, though I'm not 100% confident in the design or that we'll end up merging it. |
I personally don't think there's low-hanging fruit to address #5094. It would be surprising if the behavior changed depending on the number of configured remotes, by default. It might be okay if user opts in to it, but that means the user has to configure Things like #5472 might be useful. |
Fair enough. To exhaust my comment above: I mentioned it only in passing, but WDYT about the idea of allowing OTOH, I would not use this myself, and I don't know that we had requests for this exact behavior. |
It might be good to make both |
Is your feature request related to a problem? Please describe.
The
-N
flag seems to have been added to avoid unwanted pushes to multiple remotes (see: 296961c). When using a single remote though, this is less convenient.Describe the solution you'd like
When pushing to a single remote with
-b
, I always want-N
to be implied. This would restore the previous behavior when using a single remote.Describe alternatives you've considered
Maybe making a configuration option (that could be set at a repo level) to always imply
-N
.Additional context
N/A
The text was updated successfully, but these errors were encountered: