Re: [PATCH] add option -n (--no-checkout) to git-worktree add

2016-03-23 Thread Eric Sunshine
On Wed, Mar 23, 2016 at 11:51 AM, Junio C Hamano wrote: > Ray Zhang writes: > >> @@ -320,6 +323,7 @@ static int add(int ac, const char **av, const char >> *prefix) >> OPT_STRING('B', NULL, &new_branch_force, N_("branch"), >> N_("create or reset a branch")),

Re: [PATCH] add option -n (--no-checkout) to git-worktree add

2016-03-23 Thread Junio C Hamano
Ray Zhang writes: > @@ -320,6 +323,7 @@ static int add(int ac, const char **av, const char > *prefix) > OPT_STRING('B', NULL, &new_branch_force, N_("branch"), > N_("create or reset a branch")), > OPT_BOOL(0, "detach", &opts.detach, N_("detach

Re: [PATCH] add option -n (--no-checkout) to git-worktree add

2016-03-23 Thread Eric Sunshine
On Wed, Mar 23, 2016 at 11:08 AM, Ray Zhang wrote: > add option -n (--no-checkout) to git-worktree add Alternate: worktree: add: introduce --no-checkout option > By adding option -n, we can make some customizations before checkout, like > sparse checkout, etc. This parallels git-clone's -

[PATCH] add option -n (--no-checkout) to git-worktree add

2016-03-23 Thread Ray Zhang
By adding option -n, we can make some customizations before checkout, like sparse checkout, etc. Signed-off-by: Ray Zhang --- builtin/worktree.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/builtin/worktree.c b/builtin/worktree.c index 38b5609..14ca3d9 1006