Files
git/Documentation
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-21 14:11:40 +09:00
2017-11-21 14:07:50 +09:00
2017-11-21 14:07:50 +09:00
2016-07-13 11:24:14 -07:00
2017-04-13 16:15:25 -07:00
2017-11-06 14:24:24 +09:00
2017-01-18 15:12:12 -08:00
2015-07-21 14:08:14 -07:00
2016-08-11 14:35:42 -07:00
2017-06-27 10:35:49 -07:00
2015-10-05 12:30:13 -07:00
2017-11-21 14:07:51 +09:00
2017-11-21 14:07:50 +09:00
2017-01-18 15:12:18 -08:00
2017-05-01 11:01:52 +09:00