{"thread":{"id":"14728","subject":"Showing changes about to be commited via git svn dcommit","startedAt":"2008-07-28T22:54:19Z","lastAt":"2008-07-29T00:32:36Z","messageCount":3,"participants":["Lee Marlow","Miklos Vajna"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"85351","messageId":"7968d7490807281554u3954cf51qe2cd87b94284c77f@mail.gmail.com","threadId":"14728","inReplyTo":null,"subject":"Showing changes about to be commited via git svn dcommit","fromName":"Lee Marlow","fromEmail":"lee.marlow@gmail.com","sentAt":"2008-07-28T22:54:19Z","receivedAt":"2008-07-28T22:54:19Z","isPatch":false,"sender":{"key":"lee.marlow@gmail.com","avatar":"https://gravatar.com/avatar/231170f3c8456cf1af984d30d09f35c5509b5f81494c81fa69dc7a1027473fc0?d=mp&s=160"},"body":"git-svners,\n\nI often like to look at the diff of what I'm about to commit before\ntaking the plunge.  I'd really like an easy way to see a 'git log -p'\noutput of what would be committed to the central svn repository with a\ndcommit.  I found --dry-run and finally made a \"one-liner\" that\noutputs what I want, but it seems like a lot of work for something I\ndo quite often.  The one-liner I used is:\n\n$> git svn dcommit --dry-run | grep -E '^diff-tree ' | cut -b 11- |\ngit diff-tree --stdin -p -v\n\nIs this the real way to do it?  Do others do something similar?\n\nCurious and looking for a better way.\n\n-Lee\n"},{"id":"85360","messageId":"20080728235326.GQ32057@genesis.frugalware.org","threadId":"14728","inReplyTo":"7968d7490807281554u3954cf51qe2cd87b94284c77f@mail.gmail.com","subject":"Re: Showing changes about to be commited via git svn dcommit","fromName":"Miklos Vajna","fromEmail":"vmiklos@frugalware.org","sentAt":"2008-07-28T23:53:26Z","receivedAt":"2008-07-28T23:53:26Z","isPatch":false,"sender":{"key":"vmiklos@frugalware.org","avatar":"https://gravatar.com/avatar/401c1cbbb3a5d13e650c691a2c71d6fd0b80df1a01bc74d9f1972675dd58f2bd?d=mp&s=160"},"body":"On Mon, Jul 28, 2008 at 04:54:19PM -0600, Lee Marlow <lee.marlow@gmail.com> wrote:\n> $> git svn dcommit --dry-run | grep -E '^diff-tree ' | cut -b 11- |\n> git diff-tree --stdin -p -v\n> \n> Is this the real way to do it?  Do others do something similar?\n\nDepends on how did you created your git-svn repo. If you have only one\nbranch with no prefix, then I would try:\n\n        git log git-svn..master\n"},{"id":"85369","messageId":"7968d7490807281732x27a3987cka664ae64351f6751@mail.gmail.com","threadId":"14728","inReplyTo":"20080728235326.GQ32057@genesis.frugalware.org","subject":"Re: Showing changes about to be commited via git svn dcommit","fromName":"Lee Marlow","fromEmail":"lee.marlow@gmail.com","sentAt":"2008-07-29T00:32:36Z","receivedAt":"2008-07-29T00:32:36Z","isPatch":false,"sender":{"key":"lee.marlow@gmail.com","avatar":"https://gravatar.com/avatar/231170f3c8456cf1af984d30d09f35c5509b5f81494c81fa69dc7a1027473fc0?d=mp&s=160"},"body":"Works perfectly and makes sense to boot!  Thanks, Miklos\n\n-Lee\n\nOn Mon, Jul 28, 2008 at 5:53 PM, Miklos Vajna <vmiklos@frugalware.org> wrote:\n> On Mon, Jul 28, 2008 at 04:54:19PM -0600, Lee Marlow <lee.marlow@gmail.com> wrote:\n>> $> git svn dcommit --dry-run | grep -E '^diff-tree ' | cut -b 11- |\n>> git diff-tree --stdin -p -v\n>>\n>> Is this the real way to do it?  Do others do something similar?\n>\n> Depends on how did you created your git-svn repo. If you have only one\n> branch with no prefix, then I would try:\n>\n>        git log git-svn..master\n>\n"}]}