aboutsummaryrefslogtreecommitdiff
path: root/attr.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-10-18 00:13:47 -0700
committerJunio C Hamano <gitster@pobox.com>2009-10-18 00:38:03 -0700
commit70c9ac2f1999b7e0c17a864235537cffe29dfea4 (patch)
tree8766e1459d697f8e1916402d0dec91b41902c339 /attr.c
parentc6e8c8005a2b1fc4cff72d279f29178767bd1a47 (diff)
downloadgit-70c9ac2f1999b7e0c17a864235537cffe29dfea4.tar.gz
git-70c9ac2f1999b7e0c17a864235537cffe29dfea4.tar.xz
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>
Diffstat (limited to 'attr.c')
0 files changed, 0 insertions, 0 deletions