summaryrefslogtreecommitdiff
path: root/builtin/worktree.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-01-17 18:32:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-01-17 20:37:19 (GMT)
commitb780e4407d559e51224dded31e3d90e25191eb08 (patch)
tree0abcb42caac0325b9c9a61d34583fe21e8d3a2fb /builtin/worktree.c
parent66d3f19324ac9eeae8ef0d2ae2067ae7b18f8ac8 (diff)
downloadgit-b780e4407d559e51224dded31e3d90e25191eb08.zip
git-b780e4407d559e51224dded31e3d90e25191eb08.tar.gz
git-b780e4407d559e51224dded31e3d90e25191eb08.tar.bz2
worktree: say that "add" takes an arbitrary commit in short-help
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>
Diffstat (limited to 'builtin/worktree.c')
-rw-r--r--builtin/worktree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/worktree.c b/builtin/worktree.c
index 002a569..4666abd 100644
--- a/builtin/worktree.c
+++ b/builtin/worktree.c
@@ -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>]"),