git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Showing changes about to be commited via git svn dcommit
@ 2008-07-28 22:54 Lee Marlow
  2008-07-28 23:53 ` Miklos Vajna
  0 siblings, 1 reply; 3+ messages in thread
From: Lee Marlow @ 2008-07-28 22:54 UTC (permalink / raw)
  To: git

git-svners,

I often like to look at the diff of what I'm about to commit before
taking the plunge.  I'd really like an easy way to see a 'git log -p'
output of what would be committed to the central svn repository with a
dcommit.  I found --dry-run and finally made a "one-liner" that
outputs what I want, but it seems like a lot of work for something I
do quite often.  The one-liner I used is:

$> git svn dcommit --dry-run | grep -E '^diff-tree ' | cut -b 11- |
git diff-tree --stdin -p -v

Is this the real way to do it?  Do others do something similar?

Curious and looking for a better way.

-Lee

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

* Re: Showing changes about to be commited via git svn dcommit
  2008-07-28 22:54 Showing changes about to be commited via git svn dcommit Lee Marlow
@ 2008-07-28 23:53 ` Miklos Vajna
  2008-07-29  0:32   ` Lee Marlow
  0 siblings, 1 reply; 3+ messages in thread
From: Miklos Vajna @ 2008-07-28 23:53 UTC (permalink / raw)
  To: Lee Marlow; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 408 bytes --]

On Mon, Jul 28, 2008 at 04:54:19PM -0600, Lee Marlow <lee.marlow@gmail.com> wrote:
> $> git svn dcommit --dry-run | grep -E '^diff-tree ' | cut -b 11- |
> git diff-tree --stdin -p -v
> 
> Is this the real way to do it?  Do others do something similar?

Depends on how did you created your git-svn repo. If you have only one
branch with no prefix, then I would try:

        git log git-svn..master

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: Showing changes about to be commited via git svn dcommit
  2008-07-28 23:53 ` Miklos Vajna
@ 2008-07-29  0:32   ` Lee Marlow
  0 siblings, 0 replies; 3+ messages in thread
From: Lee Marlow @ 2008-07-29  0:32 UTC (permalink / raw)
  To: Miklos Vajna; +Cc: git

Works perfectly and makes sense to boot!  Thanks, Miklos

-Lee

On Mon, Jul 28, 2008 at 5:53 PM, Miklos Vajna <vmiklos@frugalware.org> wrote:
> On Mon, Jul 28, 2008 at 04:54:19PM -0600, Lee Marlow <lee.marlow@gmail.com> wrote:
>> $> git svn dcommit --dry-run | grep -E '^diff-tree ' | cut -b 11- |
>> git diff-tree --stdin -p -v
>>
>> Is this the real way to do it?  Do others do something similar?
>
> Depends on how did you created your git-svn repo. If you have only one
> branch with no prefix, then I would try:
>
>        git log git-svn..master
>

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

end of thread, other threads:[~2008-07-29  0:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-28 22:54 Showing changes about to be commited via git svn dcommit Lee Marlow
2008-07-28 23:53 ` Miklos Vajna
2008-07-29  0:32   ` Lee Marlow

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).