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

show "Unpulled from origin/…" section #12

Open
unhammer opened this issue Jan 15, 2021 · 7 comments
Open

show "Unpulled from origin/…" section #12

unhammer opened this issue Jan 15, 2021 · 7 comments

Comments

@unhammer
Copy link
Contributor

Regular magit status includes this section, would be handy after running multi-magit-git-command git fetch.

@luismbo
Copy link
Owner

luismbo commented Jan 15, 2021

You can push the desired section to multi-magit-status-sections-hook. It accepts the same sections as magit-status-sections-hook. I think you're looking for magit-insert-unpulled-from-upstream. multi-magit is defaulting to a very minimalistic set of sections mostly because I'm on Windows, and magit is particularly slow here. :-(

@luismbo luismbo closed this as completed Jan 15, 2021
@luismbo
Copy link
Owner

luismbo commented Jan 15, 2021

I'd accept a pull request adding more sections when not on Windows if you think that's a good idea.

@luismbo
Copy link
Owner

luismbo commented Jan 15, 2021

Just noticed that this variable isn't documented in the README. That's a big oversight. Reopening for that reason.

@luismbo luismbo reopened this Jan 15, 2021
@unhammer
Copy link
Contributor Author

unhammer commented Jan 15, 2021 via email

@luismbo
Copy link
Owner

luismbo commented Jan 15, 2021

It works for me, but I'm using magit from 2019-03 (almost 2 years old, ouch) partly because multi-magit is a bit sensitive to changes in magit, sadly. I hope to have a look at upgrading soon.

@luismbo
Copy link
Owner

luismbo commented Jan 15, 2021

Taking a quick look at a recent magit-log.el, maybe try and set magit-section-show-child-count to nil as a workaround. Your backtrace suggests (magit-log-get-commit-limit) is returning nil for some reason.

@unhammer
Copy link
Contributor Author

unhammer commented Jan 16, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants