Function: magit-bundle-create-tracked

magit-bundle-create-tracked is an autoloaded, interactive and byte-compiled function defined in magit-bundle.el.

Signature

(magit-bundle-create-tracked FILE TAG BRANCH REFS ARGS)

Documentation

Create and track a new bundle.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-bundle.el
;;;###autoload
(defun magit-bundle-create-tracked (file tag branch refs args)
  "Create and track a new bundle."
  (interactive
    (let ((tag    (magit-read-tag "Track bundle using tag"))
          (branch (magit-read-branch "Bundle branch"))
          (refs   (magit-completing-read-multiple
                   "Additional refnames (zero or more): "
                   (magit-list-refnames))))
      (list (read-file-name "File: " nil nil nil (concat tag ".bundle"))
            tag branch
            (if (equal branch (magit-get-current-branch))
                (cons "HEAD" refs)
              refs)
            (transient-args 'magit-bundle-create))))
  (magit-git-bundle "create" file (cons branch refs) args)
  (magit-git "tag" "--force" tag branch
             "-m" (concat ";; git-bundle tracking\n"
                          (pp-to-string `((file   . ,file)
                                          (branch . ,branch)
                                          (refs   . ,refs)
                                          (args   . ,args))))))