зеркало из https://github.com/microsoft/git.git
Merge branch 'jl/clone-recurse-sm-synonym'
* jl/clone-recurse-sm-synonym: clone: Add the --recurse-submodules option as alias for --recursive
This commit is contained in:
Коммит
106e3afa6f
|
@ -12,7 +12,8 @@ SYNOPSIS
|
||||||
'git clone' [--template=<template_directory>]
|
'git clone' [--template=<template_directory>]
|
||||||
[-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror]
|
[-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror]
|
||||||
[-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>]
|
[-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>]
|
||||||
[--depth <depth>] [--recursive] [--] <repository> [<directory>]
|
[--depth <depth>] [--recursive|--recurse-submodules] [--] <repository>
|
||||||
|
[<directory>]
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
@ -167,6 +168,7 @@ objects from the source repository into a pack in the cloned repository.
|
||||||
as patches.
|
as patches.
|
||||||
|
|
||||||
--recursive::
|
--recursive::
|
||||||
|
--recurse-submodules::
|
||||||
After the clone is created, initialize all submodules within,
|
After the clone is created, initialize all submodules within,
|
||||||
using their default settings. This is equivalent to running
|
using their default settings. This is equivalent to running
|
||||||
`git submodule update --init --recursive` immediately after
|
`git submodule update --init --recursive` immediately after
|
||||||
|
|
|
@ -66,6 +66,8 @@ static struct option builtin_clone_options[] = {
|
||||||
"setup as shared repository"),
|
"setup as shared repository"),
|
||||||
OPT_BOOLEAN(0, "recursive", &option_recursive,
|
OPT_BOOLEAN(0, "recursive", &option_recursive,
|
||||||
"initialize submodules in the clone"),
|
"initialize submodules in the clone"),
|
||||||
|
OPT_BOOLEAN(0, "recurse_submodules", &option_recursive,
|
||||||
|
"initialize submodules in the clone"),
|
||||||
OPT_STRING(0, "template", &option_template, "path",
|
OPT_STRING(0, "template", &option_template, "path",
|
||||||
"path the template repository"),
|
"path the template repository"),
|
||||||
OPT_STRING(0, "reference", &option_reference, "repo",
|
OPT_STRING(0, "reference", &option_reference, "repo",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче