Function: magit-clone-shallow-since

magit-clone-shallow-since is an autoloaded, interactive and byte-compiled function defined in magit-clone.el.

Signature

(magit-clone-shallow-since REPOSITORY DIRECTORY ARGS DATE)

Documentation

Create a shallow clone of REPOSITORY in DIRECTORY.

Then show the status buffer for the new repository. Exclude commits before DATE, which is read from the user.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-clone.el
;;;###autoload
(defun magit-clone-shallow-since (repository directory args date)
  "Create a shallow clone of REPOSITORY in DIRECTORY.
Then show the status buffer for the new repository.
Exclude commits before DATE, which is read from the
user."
  (interactive (append (magit-clone-read-args)
                       (list (transient-read-date "Exclude commits before: "
                                                  nil nil))))
  (magit-clone-internal repository directory
                        (cons (format "--shallow-since=%s" date) args)))