Function: majutsu-bookmark--track-ref

majutsu-bookmark--track-ref is a natively compiled function defined in majutsu-bookmark.el.

Signature

(majutsu-bookmark--track-ref REF UNTRACK)

Documentation

Track REF, or untrack it when UNTRACK is non-nil.

REF is one exact NAME@REMOTE, not a bookmark or remote pattern.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-bookmark.el
(defun majutsu-bookmark--track-ref (ref untrack)
  "Track REF, or untrack it when UNTRACK is non-nil.
REF is one exact NAME@REMOTE, not a bookmark or remote pattern."
  (pcase-let ((`(,name . ,remote) (majutsu--bookmark-split-remote-ref ref)))
    (unless (and remote (not (equal remote "git")))
      (user-error "Expected a network remote bookmark"))
    (majutsu-start-jj (list "bookmark" (if untrack "untrack" "track")
                            (concat "exact:" name) "--remote" (concat "exact:" remote)))))