{"thread":{"id":"11061","subject":"[PATCH] git-svn: Don't create a \"master\" branch every time rebase is run","startedAt":"2007-11-29T19:54:39Z","lastAt":"2007-11-29T19:54:39Z","messageCount":1,"participants":["Steven Grimm"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"61418","messageId":"20071129195439.GA22630@midwinter.com","threadId":"11061","inReplyTo":null,"subject":"[PATCH] git-svn: Don't create a \"master\" branch every time rebase is run","fromName":"Steven Grimm","fromEmail":"koreth@midwinter.com","sentAt":"2007-11-29T19:54:39Z","receivedAt":"2007-11-29T19:54:39Z","isPatch":true,"sender":{"key":"koreth@midwinter.com","avatar":"https://gravatar.com/avatar/71b4d2e8b62f168bdc9e9205341159e3567003b4f9e2127c617c5fa0a1f5bad2?d=mp&s=160"},"body":"If you run \"git-svn rebase\" while sitting on a topic branch, there is\nno need to create a \"master\" branch if one didn't exist already. The\nbranch was created implicitly by the automatic checkout after fetching,\nwhich in the case of rebase isn't actually necessary anyway.\n\nSigned-off-by: Steven Grimm <koreth@midwinter.com>\n---\n git-svn.perl |    2 ++\n 1 files changed, 2 insertions(+), 0 deletions(-)\n\ndiff --git a/git-svn.perl b/git-svn.perl\nindex 43e1591..d483e6b 100755\n--- a/git-svn.perl\n+++ b/git-svn.perl\n@@ -545,6 +545,8 @@ sub cmd_rebase {\n \t\texit 1;\n \t}\n \tunless ($_local) {\n+\t\t# rebase will checkout for us, so no need to do it explicitly\n+\t\t$_no_checkout = 'true';\n \t\t$_fetch_all ? $gs->fetch_all : $gs->fetch;\n \t}\n \tcommand_noisy(rebase_cmd(), $gs->refname);\n-- \n1.5.3.6.960.g49661\n"}]}