-
Notifications
You must be signed in to change notification settings - Fork 102
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
[Feature request] Support upstream/pushRemote workflow #58
Comments
Sounds great! In case you want to start on this, I'm happy to help! Places I'd start at are:
Could focus on one of these to start! :) |
I started looking into this today, I'm currently trying to figure out a good way to start experimenting with git2, planning to start setting up some tests using the |
@altsem What do you think about moving some of the test helper code into the |
@rynoV I'm thinking all tests could be moved back. They used to be in src/ Especially now that I moved things into modules (ops::*) Perhaps if you want to start small, just move the helpers 👍 |
@altsem I ended up moving them all into The commit here for cherrypicking: rynoV@ab4ccb4 |
@rynoV looks good. It is now in master! |
I had a peek at just trying to understand all the bits and pieces we'd need to do in order to support this. Here's what a summary of it: Currently Push/Pull will just equate to The remotes are configured in a repo's
and can be read via git/(libgit2):
How Magit looks like:TODO
Future work |
Thanks for looking into this that's helpful! I merged my branch with the latest changes today. Currently I have code to set the upstream of a branch like magit does it, next will be to set the push remote and expose these functions from the branch config menu |
I think we might have something that works 🦀! And I feel it's usable and clear enough. After some time I'll drop it in master, and yet after some more I'll make a new release. Good work with this and thanks @rynoV! :) edit: It's now in master |
This is now released as of version |
Thanks for making this! I really like it, especially for when I need to work on Windows.
One of the features I like about Magit is its support for easily differentiating a branch's upstream/merge and pushRemote. I first saw the feature+workflow described here, and now I find other git UIs without this feature like vscode's to be lacking. It's very convenient to be able to quickly see both the difference between the upstream merge target (e.g.
master
) and the remote branch being tracked (usually a "feature" branch with the same name as the local branch). For example, with Magit when I run a fetch:master
and my feature branch has fallen behindmaster
or the remote tracked branch into my local branchThe main features from Magit that I'd like to see in this project:
branch.<name>.pushRemote
(if it's not already set) when using the "push to pushRemote" keybind, in the same way as MagitI'm not sure how big of an ask this is, I haven't looked at the codebase yet, but I like the project and I like rust so I might try implementing this at some point.
The text was updated successfully, but these errors were encountered: