Function: magit-wip-log-get-tips
magit-wip-log-get-tips is a natively compiled function defined in
magit-wip.el.
Signature
(magit-wip-log-get-tips WIPREF COUNT)
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-wip.el
(defun magit-wip-log-get-tips (wipref count)
(and-let ((reflog (magit-git-lines "reflog" wipref)))
(let (tips)
(while (and reflog (> count 1))
;; "start autosaving ..." is the current message, but it used
;; to be "restart autosaving ...", and those messages may
;; still be around (e.g., if gc.reflogExpire is set to "never").
(setq reflog (cl-member "^[^ ]+ [^:]+: \\(?:re\\)?start autosaving"
reflog :test #'string-match-p))
(when (and (cadr reflog)
(string-match "^[^ ]+ \\([^:]+\\)" (cadr reflog)))
(push (match-str 1 (cadr reflog)) tips))
(setq reflog (cddr reflog))
(decf count))
(cons wipref (nreverse tips)))))