Skip to content
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 - related branches #90

Open
datalogics-kam opened this issue Sep 15, 2022 · 2 comments
Open

Feature request - related branches #90

datalogics-kam opened this issue Sep 15, 2022 · 2 comments
Labels
feedback wanted Feedback wanted from the community

Comments

@datalogics-kam
Copy link

I love Flog! I'm using it to make a lighter/faster Git experience as an alternative to using Magit in Emacs.

Magit has a really useful "related" graph view. If I use magit-log-related it shows me my current branch, the branch on the origin remote, and the branch it's tracking on upstream.

For instance, I could emulate it for my current work like this:

git glog update-packages origin/update-packages upstream/develop

It'd be really nice if there were such a feature in Flog.

The function doc looks like this:

magit-log-related is an autoloaded, interactive and byte-compiled
function defined in magit-log.el.

Signature
(magit-log-related REVS &optional ARGS FILES)

Documentation
Show log for the current branch, its upstream and its push target.

When the upstream is a local branch, then also show its own
upstream.  When HEAD is detached, then show log for that, the
previously checked out branch and its upstream and push-target.

And you can see the source for it here.

@bew
Copy link

bew commented Jan 22, 2023

Great idea!
I really like using @{u} in my git log aliases to get useful info, for example @{u}.. to get commits yet to push :)
Having related branches in the plugin would be a nice bonus 👍

To help implementation:
For upstream, we can use: some-branch@{upstream} (or short form some-branch@{u})
For push target, we can use: some-branch@{push}

I'm not sure how that should work (or not) on a detached head though 👀

@rbong
Copy link
Owner

rbong commented Jan 24, 2023

Maybe something like an argument -related, and a binding to toggle this argument?

I like it, but it would be the first argument added to Flog that isn't a direct analogue for a git log argument.

There's a question right now whether we should make arguments closer to git log or farther. See #68

Thinking about it.

@rbong rbong added the feedback wanted Feedback wanted from the community label Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback wanted Feedback wanted from the community
Projects
None yet
Development

No branches or pull requests

3 participants