Thread (100 messages) 100 messages, 4 authors, 2018-04-28

Re: [PATCH v4 2/4] worktree: be clearer when "add" dwim-ery kicks in

From: Eric Sunshine <hidden>
Date: 2018-03-20 06:40:07

On Sat, Mar 17, 2018 at 6:22 PM, Thomas Gummerer [off-list ref] wrote:
Currently there is no indication in the "git worktree add" output that
a new branch was created.  This would be especially useful information
in the case where the dwim of "git worktree add <path>" kicks in, as the
user didn't explicitly ask for a new branch, but we create one from
them.

Print some additional output showing that a branch was created and the
branch name to help the user.
Good idea.
This will also be useful in the next commit, which introduces a new kind
of dwim-ery of checking out the branch if it exists instead of refusing
to create a new worktree in that case, and where it's nice to tell the
user which kind of dwim-ery kicked in.

Signed-off-by: Thomas Gummerer <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help