diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2014-07-29 20:50:30 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-07-29 13:42:14 -0700 |
commit | d7388a77baf2aacd6ac8c1f329e1f81fb7a138ea (patch) | |
tree | aecbd1511d4d74333f007289557a01aa79eb729b | |
parent | 80015ab17860e665325ac6392a03bfb42aa069be (diff) | |
download | git-d7388a77baf2aacd6ac8c1f329e1f81fb7a138ea.tar.gz |
checkout: prefix --to argument properly when cwd is moved
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | builtin/checkout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c index 173aab1575..4fbb9c13a1 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -1342,7 +1342,7 @@ int cmd_checkout(int argc, const char **argv, const char *prefix) N_("do not limit pathspecs to sparse entries only")), OPT_HIDDEN_BOOL(0, "guess", &dwim_new_local_branch, N_("second guess 'git checkout no-such-branch'")), - OPT_STRING(0, "to", &opts.new_worktree, N_("path"), + OPT_FILENAME(0, "to", &opts.new_worktree, N_("check a branch out in a separate working directory")), OPT_END(), }; |