Code

builtin-checkout: Don't tell user that HEAD has moved before it has
authorDaniel Cordero <theappleman@gmail.com>
Sat, 16 May 2009 17:54:45 +0000 (10:54 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 May 2009 19:51:58 +0000 (12:51 -0700)
commit77ebd56dc3d2efaeac87edc990cc1b99f331527c
tree863f3db962ea7157fe925c8d8f20b9687e777044
parentc646217e1366b0397552fad8c32acb47fbe8977d
builtin-checkout: Don't tell user that HEAD has moved before it has

Previously, checkout would tell the user this message before moving HEAD,
without regard to whether the upcoming move will result in success.
If the move failed, this causes confusion.

Show the message after the move, unless the move failed.

Signed-off-by: Daniel Cordero <theappleman@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-checkout.c