{"thread":{"id":"13639","subject":"git-svn: commit all changes as one svn revision?","startedAt":"2008-05-23T16:08:15Z","lastAt":"2008-05-23T16:31:30Z","messageCount":3,"participants":["Robert Anderson","Thomas Harning","Thomas Rast"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"77560","messageId":"9af502e50805230908t76c9b26exd36cfb6d0f1a9bcf@mail.gmail.com","threadId":"13639","inReplyTo":null,"subject":"git-svn: commit all changes as one svn revision?","fromName":"Robert Anderson","fromEmail":"rwa000@gmail.com","sentAt":"2008-05-23T16:08:15Z","receivedAt":"2008-05-23T16:08:15Z","isPatch":false,"sender":{"key":"rwa000@gmail.com","avatar":null},"body":"Use case:\n\nI make a bunch of git commits developing something that was checked\nout from a svn repo using git-svn.  I want to commit all the changes\nsince my last dcommit as one revision, rather than having each git\ncommit checked in separately, as dcommit behaves.\n\nIs there a way to do this?\n\nThanks,\nBob Anderson\n"},{"id":"77562","messageId":"E99FAF46-DD7F-4A3F-B238-E428D129AF50@gmail.com","threadId":"13639","inReplyTo":"9af502e50805230908t76c9b26exd36cfb6d0f1a9bcf@mail.gmail.com","subject":"Re: git-svn: commit all changes as one svn revision?","fromName":"Thomas Harning","fromEmail":"harningt@gmail.com","sentAt":"2008-05-23T16:22:12Z","receivedAt":"2008-05-23T16:22:12Z","isPatch":false,"sender":{"key":"harningt@gmail.com","avatar":"https://gravatar.com/avatar/a79ddd43da8c8f1f899cd75b7b95cc5f3b2ba5643400468988b1a12c86b75d08?d=mp&s=160"},"body":"On May 23, 2008, at 12:08 PM, Robert Anderson wrote:\n> I make a bunch of git commits developing something that was checked\n> out from a svn repo using git-svn.  I want to commit all the changes\n> since my last dcommit as one revision, rather than having each git\n> commit checked in separately, as dcommit behaves.\n>\n> Is there a way to do this?\ngit-svn dcommit -m\n  (IIRR)\n"},{"id":"77563","messageId":"200805231831.42984.trast@student.ethz.ch","threadId":"13639","inReplyTo":"9af502e50805230908t76c9b26exd36cfb6d0f1a9bcf@mail.gmail.com","subject":"Re: git-svn: commit all changes as one svn revision?","fromName":"Thomas Rast","fromEmail":"trast@student.ethz.ch","sentAt":"2008-05-23T16:31:30Z","receivedAt":"2008-05-23T16:31:30Z","isPatch":false,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"You wrote:\n> I make a bunch of git commits developing something that was checked\n> out from a svn repo using git-svn.  I want to commit all the changes\n> since my last dcommit as one revision, rather than having each git\n> commit checked in separately, as dcommit behaves.\n\nI usually do\n\n$ git checkout -b side master\n... edit, commit ...\n$ git checkout master\n$ git merge --no-ff side\n$ git-svn dcommit\n\nThe resulting merge commit looks like a normal merge to Git (keeping\nhistory intact), but like a squashed commit of all changes on 'side'\nto SVN.\n\n(If you made all commits on master, you can branch 'side' and hard\nreset master to origin/master first.)\n\n- Thomas\n\n-- \nThomas Rast\ntrast@student.ethz.ch\n"}]}