Files
git/builtin
Thomas Gummerer 71d6682d8c worktree: add --guess-remote flag to add subcommand
Currently 'git worktree add <path>' creates a new branch named after the
basename of the <path>, that matches the HEAD of whichever worktree we
were on when calling "git worktree add <path>".

It's sometimes useful to have 'git worktree add <path> behave more like
the dwim machinery in 'git checkout <new-branch>', i.e. check if the new
branch name, derived from the basename of the <path>, uniquely matches
the branch name of a remote-tracking branch, and if so check out that
branch and set the upstream to the remote-tracking branch.

Add a new --guess-remote option that enables exactly that behaviour.

Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2017-12-06 09:47:35 -08:00
..
2017-11-15 12:14:29 +09:00
2017-10-06 10:07:18 +09:00
2016-11-22 13:55:20 -08:00
2017-11-06 14:24:27 +09:00
2017-06-24 14:28:41 -07:00
2017-11-06 14:24:27 +09:00
2017-10-07 16:27:55 +09:00
2017-03-31 08:33:56 -07:00
2017-09-25 15:24:07 +09:00
2017-11-21 14:07:50 +09:00
2017-06-24 14:28:41 -07:00
2017-11-15 12:14:32 +09:00
2017-08-03 13:11:02 -07:00
2017-08-26 22:55:09 -07:00
2017-11-15 12:14:32 +09:00
2017-06-24 14:28:41 -07:00
2017-11-15 12:14:28 +09:00
2017-08-03 13:11:02 -07:00
2017-08-22 10:29:03 -07:00
2017-11-06 14:24:27 +09:00
2017-11-06 14:24:27 +09:00
2017-11-21 14:07:50 +09:00
2017-06-24 14:28:41 -07:00