-
Notifications
You must be signed in to change notification settings - Fork 9
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
Comments
You can push the desired section to |
I'd accept a pull request adding more sections when not on Windows if you think that's a good idea. |
Just noticed that this variable isn't documented in the README. That's a big oversight. Reopening for that reason. |
Tried
(push #'magit-insert-unpulled-from-upstream multi-magit-status-sections-hook)
but that gave me
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
=(1 nil)
(if (= count (magit-log-get-commit-limit)) (progn (setq count (format "%s+" count))))
(progn (if (= count (magit-log-get-commit-limit)) (progn (setq count (format "%s+" co...
(if (> count 0) (progn (if (= count (magit-log-get-commit-limit)) (progn (setq count ...
(let ((count (length (eieio-oref magit-insert-section--current 'children)))) (if (> c...
(progn (let ((count (length (eieio-oref magit-insert-section--current 'children)))) (...
(if magit-section-show-child-count (progn (let ((count (length (eieio-oref magit-inse...
magit-log-insert-child-count()
(catch 'cancel-section (magit-insert-heading (format (propertize "Unpulled from %s." ...
(let ((magit-insert-section--current section99) (magit-insert-section--parent section...
(let* ((type98 'unpulled) (section99 (funcall (if (class-p type98) type98 (or (cdr (a...
(if upstream (let* ((type98 'unpulled) (section99 (funcall (if (class-p type98) type9...
(let* ((upstream (and t (magit-get-upstream-branch)))) (if upstream (let* ((type98 'u...
magit-insert-unpulled-from-upstream()
apply(magit-insert-unpulled-from-upstream nil)
(if (and (boundp 'magit-refresh-verbose) magit-refresh-verbose) (message " %-50s %s"...
(if (memq entry magit-disabled-section-inserters) nil (if (and (boundp 'magit-refresh...
(let ((magit--current-section-hook (cons (list hook entry) magit--current-section-hoo...
(let ((entry (car --dolist-tail--))) (let ((magit--current-section-hook (cons (list h...
(while --dolist-tail-- (let ((entry (car --dolist-tail--))) (let ((magit--current-sec...
(let ((--dolist-tail-- entries)) (while --dolist-tail-- (let ((entry (car --dolist-ta...
(let ((entries (symbol-value hook))) (if (listp entries) nil (setq entries (list entr...
magit-run-section-hook(multi-magit-status-sections-hook)
multi-magit--refresh-status(#<buffer *Multi-Magit Status>)
multi-magit-status()
funcall-interactively(multi-magit-status)
command-execute(multi-magit-status)
|
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. |
Taking a quick look at a recent magit-log.el, maybe try and set |
Thanks :) this seems to work then, for only setting it in multi-magit:
(push #'magit-insert-unpulled-from-upstream multi-magit-status-sections-hook)
(defun my-multi-magit-no-counts () (setq-local magit-section-show-child-count nil))
(add-hook 'multi-magit-status-sections-hook #'my-multi-magit-no-counts)
|
Regular magit status includes this section, would be handy after running multi-magit-git-command git fetch.
The text was updated successfully, but these errors were encountered: