Function: majutsu-diff--format-refs
majutsu-diff--format-refs is a natively compiled function defined in
majutsu-diff.el.
Signature
(majutsu-diff--format-refs FIELDS)
Documentation
Return Magit-style local and remote ref labels from FIELDS.
The synthetic git remote used by jj's Git backend is omitted.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-diff.el
(defun majutsu-diff--format-refs (fields)
"Return Magit-style local and remote ref labels from FIELDS.
The synthetic `git' remote used by jj's Git backend is omitted."
(string-join
(delete-dups
(append
(mapcar (lambda (ref)
(majutsu-diff--propertize-ref ref 'magit-branch-local))
(plist-get fields :local-bookmarks))
(delq nil
(mapcar
(lambda (ref)
(pcase-let ((`(,name ,remote) ref))
(unless (string= remote "git")
(majutsu-diff--propertize-ref
(format "%s/%s" remote name)
'magit-branch-remote))))
(plist-get fields :remote-bookmarks)))))
" "))