Function: majutsu-ref--names-template-form

majutsu-ref--names-template-form is a natively compiled function defined in majutsu-ref.el.

Signature

(majutsu-ref--names-template-form SCOPE)

Documentation

Return a CommitRef name template form for SCOPE.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-ref.el
(defun majutsu-ref--names-template-form (scope)
  "Return a CommitRef name template form for SCOPE."
  (pcase (majutsu-ref--normalize-scope scope)
    ('local
     '[:if [:and [:not [:remote]] [:present]]
          [[:name] "\n"]
        ""])
    ('remote
     '[:if [:and [:remote] [:present]]
          [[:name] "@" [:remote] "\n"]
        ""])
    ('remote-tracked
     '[:if [:and [:and [:remote] [:present]] [:tracked]]
          [[:name] "@" [:remote] "\n"]
        ""])
    ('remote-untracked
     '[:if [:and [:and [:remote] [:present]] [:not [:tracked]]]
          [[:name] "@" [:remote] "\n"]
        ""])))