]> git.ipfire.org Git - thirdparty/git.git/commitdiff
clone,fetch: explain the shallow-clone option a little more clearly
authorAlex Henrie <alexhenrie24@gmail.com>
Sun, 4 Dec 2016 22:03:59 +0000 (15:03 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Dec 2016 22:50:57 +0000 (14:50 -0800)
"deepen by excluding" does not make sense because excluding a revision
does not deepen a repository; it makes the repository more shallow.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c
builtin/fetch.c

index 6c76a6ed66fef567ca06e3e864b37fc3bed151d5..e3cb8082f7e83b4f233d55bfba78417ebdada114 100644 (file)
@@ -99,7 +99,7 @@ static struct option builtin_clone_options[] = {
        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 by excluding rev")),
+                       N_("deepen history of shallow clone, excluding rev")),
        OPT_BOOL(0, "single-branch", &option_single_branch,
                    N_("clone only one branch, HEAD or --branch")),
        OPT_BOOL(0, "shallow-submodules", &option_shallow_submodules,
index b6a5597cbf332fc56b5feabfd29d03c98d4d6686..fc74c8471cec5d1d1855c7d4362e465e44259e6c 100644 (file)
@@ -122,7 +122,7 @@ static struct option builtin_fetch_options[] = {
        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 by excluding rev")),
+                       N_("deepen history of shallow clone, excluding rev")),
        OPT_INTEGER(0, "deepen", &deepen_relative,
                    N_("deepen history of shallow clone")),
        { OPTION_SET_INT, 0, "unshallow", &unshallow, NULL,