worktree: allow "-" short-hand for @{-1} in add command
authorJordan DE GEA <jordan.de-gea@grenoble-inp.org>
Fri, 27 May 2016 13:17:08 +0000 (15:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 31 May 2016 19:28:25 +0000 (12:28 -0700)
Since `git worktree add` uses `git checkout` when `[<branch>]` is used,
and `git checkout -` is already supported, it makes sense to allow the
same shortcut in `git worktree add`.

Signed-off-by: Jordan DE GEA <jordan.de-gea@grenoble-inp.org>
Signed-off-by: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found