diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2019-04-23 18:02:00 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2019-04-25 13:11:04 +0200 |
| commit | 758f6d0a06a3d4551d34564dabf18766875b0583 (patch) | |
| tree | eb98387ecf46185119206cb8f2d280d5a7b0c82f /lisp | |
| parent | 6a034c1d383346872f19631dc645566ce857ec46 (diff) | |
magit-clone: Add infix arguments
Leave out arguments that are covered by the various suffix commands as
well several footgun arguments. Other footgun and obscure arguments
are put on higher (by default inactive) levels.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/magit-clone.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lisp/magit-clone.el b/lisp/magit-clone.el index 2ec3a1f..2a5dee9 100644 --- a/lisp/magit-clone.el +++ b/lisp/magit-clone.el @@ -74,6 +74,21 @@ directly." (define-transient-command magit-clone (&optional transient) "Clone a repository." :man-page "git-clone" + ["Fetch arguments" + ("-B" "Clone a single branch" "--single-branch") + ("-n" "Do not clone tags" "--no-tags") + ("-S" "Clones submodules" "--recurse-submodules" :level 6) + ("-l" "Do not optimize" "--no-local" :level 7)] + ["Setup arguments" + ("-o" "Set name of remote" ("-o" "--origin=")) + ("-b" "Set HEAD branch" ("-b" "--branch=")) + ("-g" "Separate git directory" "--separate-git-dir=" + transient-read-directory :level 7) + ("-t" "Use template directory" "--template=" + transient-read-existing-directory :level 6)] + ["Local sharing arguments" + ("-s" "Share objects" ("-s" "--shared" :level 7)) + ("-h" "Do not use hardlinks" "--no-hardlinks")] ["Clone" ("C" "regular" magit-clone-regular) ("s" "shallow" magit-clone-shallow) |
