Function: magit-clone-shallow

magit-clone-shallow is an interactive and natively compiled function defined in magit-clone.el.

Signature

(magit-clone-shallow REPOSITORY DIRECTORY ARGS DEPTH)

Documentation

Create a shallow clone of REPOSITORY in DIRECTORY.

Then show the status buffer for the new repository. With a prefix argument read the DEPTH of the clone; otherwise use 1.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-clone.el
;;;###autoload
(defun magit-clone-shallow (repository directory args depth)
  "Create a shallow clone of REPOSITORY in DIRECTORY.
Then show the status buffer for the new repository.
With a prefix argument read the DEPTH of the clone;
otherwise use 1."
  (interactive (append (magit-clone-read-args)
                       (list (if current-prefix-arg
                                 (read-number "Depth: " 1)
                               1))))
  (magit-clone-internal repository directory
                        (cons (format "--depth=%s" depth) args)))