t2024: Add tests verifying current DWIM behavior of 'git checkout <branch>'
commit399e4a1c560ae8caf338e13a73851089c384230a
authorJohan Herland <johan@herland.net>
Sun, 21 Apr 2013 21:51:59 +0000 (21 23:51 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 21 Apr 2013 22:14:40 +0000 (21 15:14 -0700)
treec03d4819988f2a667c3d6ad22a02d888f6d7731b
parentd2949c7b3c8a2f0d2cb5c61d99017a1a85a46264
t2024: Add tests verifying current DWIM behavior of 'git checkout <branch>'

The DWIM mode of checkout allows you to run "git checkout foo" when there is
no existing local ref or path called "foo", and there is exactly one remote
with a remote-tracking branch called "foo". Git will then automatically
create a new local branch called "foo" using the remote-tracking "foo" as
its starting point and configured upstream.

Improved-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2024-checkout-dwim.sh [new file with mode: 0755]