git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [buglet] misleading error message from git checkout
@ 2009-05-16 10:25 Nanako Shiraishi
  2009-05-16 17:54 ` [PATCH] builtin-checkout: Don't tell user that HEAD has moved before it has Daniel Cordero
  0 siblings, 1 reply; 4+ messages in thread
From: Nanako Shiraishi @ 2009-05-16 10:25 UTC (permalink / raw)
  To: git

When you aren't on any branch, have changes in your working files, and try to switch to another branch, you get an error message like this:

 % git checkout another
 Previous HEAD position was 0beee4c... git-add--interactive: remove hunk coalescing
 error: You have local changes to 'git-add--interactive.perl'; cannot switch branches.

Because the first line says "Previous ... was", I was mislead to believe that I sucsessfully switched branches, but I was mistaken.

If git-checkout were still a shell script probably I would have looked into fixing this myself, but now it is rewritten in C... Can somebody fix this please?

-- 
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-05-17  2:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-16 10:25 [buglet] misleading error message from git checkout Nanako Shiraishi
2009-05-16 17:54 ` [PATCH] builtin-checkout: Don't tell user that HEAD has moved before it has Daniel Cordero
2009-05-16 19:57   ` Junio C Hamano
2009-05-17  2:43     ` [PATCH] test: checkout shouldn't say that HEAD has moved if it didn't Nanako Shiraishi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).