worktree: say that "add" takes an arbitrary commit in short-help
authorJunio C Hamano <gitster@pobox.com>
Wed, 17 Jan 2018 18:32:32 +0000 (10:32 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Jan 2018 20:37:19 +0000 (12:37 -0800)
c4738aed ("worktree: add can be created from any commit-ish",
2017-11-26) taught "git worktree add" to start a new worktree
with an arbitrary commit-ish checked out, not limited to a tip
of a branch.

"git worktree --help" was updated to describe this, but we forgot to
update "git worktree -h".

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/worktree.c
index 002a569a11a8d67a7c94f37533c574d496026e7b..4666abd2cf35596370ca67bc06d0329215cdf66d 100644 (file)
@@ -14,7 +14,7 @@
 #include "worktree.h"
 
 static const char * const worktree_usage[] = {
-       N_("git worktree add [<options>] <path> [<branch>]"),
+       N_("git worktree add [<options>] <path> [<commit-ish>]"),
        N_("git worktree list [<options>]"),
        N_("git worktree lock [<options>] <path>"),
        N_("git worktree prune [<options>]"),