author | Junio C Hamano <gitster@pobox.com> | |
Sun, 18 Oct 2009 07:13:47 +0000 (00:13 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 18 Oct 2009 07:38:03 +0000 (00:38 -0700) | ||
commit | 70c9ac2f1999b7e0c17a864235537cffe29dfea4 | |
tree | 8766e1459d697f8e1916402d0dec91b41902c339 | tree | snapshot |
parent | c6e8c8005a2b1fc4cff72d279f29178767bd1a47 | commit | diff |
DWIM "git checkout frotz" to "git checkout -b frotz origin/frotz"
When 'frotz' is not a valid object name and not a tracked filename,
we used to complain and failed this command. When there is only
one remote that has 'frotz' as one of its tracking branches, we can
DWIM it as a request to create a local branch 'frotz' forking from
the matching remote tracking branch.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When 'frotz' is not a valid object name and not a tracked filename,
we used to complain and failed this command. When there is only
one remote that has 'frotz' as one of its tracking branches, we can
DWIM it as a request to create a local branch 'frotz' forking from
the matching remote tracking branch.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-checkout.c | diff | blob | history |