You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
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 👀
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 theorigin
remote, and the branch it's tracking onupstream
.For instance, I could emulate it for my current work like this:
It'd be really nice if there were such a feature in Flog.
The function doc looks like this:
And you can see the source for it here.
The text was updated successfully, but these errors were encountered: