Merge branch 'en/shallow-exclude-takes-a-ref-fix'
The "--shallow-exclude=<ref>" option to various history transfer commands takes a ref, not an arbitrary revision. * en/shallow-exclude-takes-a-ref-fix: doc: correct misleading descriptions for --shallow-exclude upload-pack: fix ambiguous error message
This commit is contained in:
@ -147,8 +147,8 @@ static struct option builtin_clone_options[] = {
|
||||
N_("create a shallow clone of that depth")),
|
||||
OPT_STRING(0, "shallow-since", &option_since, N_("time"),
|
||||
N_("create a shallow clone since a specific time")),
|
||||
OPT_STRING_LIST(0, "shallow-exclude", &option_not, N_("revision"),
|
||||
N_("deepen history of shallow clone, excluding rev")),
|
||||
OPT_STRING_LIST(0, "shallow-exclude", &option_not, N_("ref"),
|
||||
N_("deepen history of shallow clone, excluding ref")),
|
||||
OPT_BOOL(0, "single-branch", &option_single_branch,
|
||||
N_("clone only one branch, HEAD or --branch")),
|
||||
OPT_BOOL(0, "no-tags", &option_no_tags,
|
||||
|
@ -2216,8 +2216,8 @@ int cmd_fetch(int argc,
|
||||
N_("deepen history of shallow clone")),
|
||||
OPT_STRING(0, "shallow-since", &deepen_since, N_("time"),
|
||||
N_("deepen history of shallow repository based on time")),
|
||||
OPT_STRING_LIST(0, "shallow-exclude", &deepen_not, N_("revision"),
|
||||
N_("deepen history of shallow clone, excluding rev")),
|
||||
OPT_STRING_LIST(0, "shallow-exclude", &deepen_not, N_("ref"),
|
||||
N_("deepen history of shallow clone, excluding ref")),
|
||||
OPT_INTEGER(0, "deepen", &deepen_relative,
|
||||
N_("deepen history of shallow clone")),
|
||||
OPT_SET_INT_F(0, "unshallow", &unshallow,
|
||||
|
@ -218,8 +218,8 @@ static struct option pull_options[] = {
|
||||
OPT_PASSTHRU_ARGV(0, "shallow-since", &opt_fetch, N_("time"),
|
||||
N_("deepen history of shallow repository based on time"),
|
||||
0),
|
||||
OPT_PASSTHRU_ARGV(0, "shallow-exclude", &opt_fetch, N_("revision"),
|
||||
N_("deepen history of shallow clone, excluding rev"),
|
||||
OPT_PASSTHRU_ARGV(0, "shallow-exclude", &opt_fetch, N_("ref"),
|
||||
N_("deepen history of shallow clone, excluding ref"),
|
||||
0),
|
||||
OPT_PASSTHRU_ARGV(0, "deepen", &opt_fetch, N_("n"),
|
||||
N_("deepen history of shallow clone"),
|
||||
|
Reference in New Issue
Block a user