Code

builtin/checkout: Fix message when switching to an existing branch
authorRamkumar Ramachandra <artagnon@gmail.com>
Fri, 20 Aug 2010 17:41:47 +0000 (23:11 +0530)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Aug 2010 18:17:28 +0000 (11:17 -0700)
commit09a0ec58ce57413dcb2b2cfb4b4ece11ad616e7b
tree2220928be55641b1a93d8d54fab6ff82712c4660
parentc11969de93e741ae42d1d1d60ce716de6cf5e22b
builtin/checkout: Fix message when switching to an existing branch

Fix "Switched to a new branch <name>" to read "Switched to branch
<name>" when <name> corresponds to an existing branch. This bug was
introduced in 02ac983 while introducing the `-B` switch.

Cc: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c