{"thread":{"id":"17890","subject":"[PATCH 3/6] Improve error message for branching an existing branch","startedAt":"2009-02-19T07:36:24Z","lastAt":"2009-02-19T07:36:24Z","messageCount":1,"participants":["John Tapsell"],"isPatch":true,"patchVersion":1,"patchTotal":6},"messages":[{"id":"105401","messageId":"200902190736.24402.johnflux@gmail.com","threadId":"17890","inReplyTo":null,"subject":"[PATCH 3/6] Improve error message for branching an existing branch","fromName":"John Tapsell","fromEmail":"johnflux@gmail.com","sentAt":"2009-02-19T07:36:24Z","receivedAt":"2009-02-19T07:36:24Z","isPatch":true,"sender":{"key":"johnflux@gmail.com","avatar":"https://gravatar.com/avatar/25f70d4c0f96396b84a2e34bcd9bdc233462c7b4be29b5fdca8266fc53f30b0c?d=mp&s=160"},"body":"Signed-off-by: John Tapsell <johnflux@gmail.com>\n---\n branch.c |    3 ++-\n 1 files changed, 2 insertions(+), 1 deletions(-)\n\ndiff --git a/branch.c b/branch.c\nindex 1f00e44..86ac293 100644\n--- a/branch.c\n+++ b/branch.c\n@@ -120,7 +120,8 @@ void create_branch(const char *head,\n \n \tif (resolve_ref(ref.buf, sha1, 1, NULL)) {\n \t\tif (!force)\n-\t\t\tdie(\"A branch named '%s' already exists.\", name);\n+\t\t\tdie(\"A branch named '%s' already exists.\\n\"\n+\t\t\t    \"Maybe you wanted to change to this branch with: git checkout '%s'\", name, name);\n \t\telse if (!is_bare_repository() && !strcmp(head, name))\n \t\t\tdie(\"Cannot force update the current branch.\");\n \t\tforcing = 1;\n-- \n1.6.2.rc1.3.g7d31b.dirty\n"}]}