# Showing changes about to be commited via git svn dcommit

3 messages from 2008-07-28 to 2008-07-29. Participants: Lee Marlow, Miklos Vajna.
Thread: https://gitlist.dev/t/14728

## Lee Marlow, 2008-07-28 22:54

Subject: Showing changes about to be commited via git svn dcommit
Message-ID: <7968d7490807281554u3954cf51qe2cd87b94284c77f@mail.gmail.com>
URL: https://gitlist.dev/e/7968d7490807281554u3954cf51qe2cd87b94284c77f%40mail.gmail.com

```
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

```

## Miklos Vajna, 2008-07-28 23:53

Subject: Re: Showing changes about to be commited via git svn dcommit
Message-ID: <20080728235326.GQ32057@genesis.frugalware.org>
URL: https://gitlist.dev/e/20080728235326.GQ32057%40genesis.frugalware.org
In-Reply-To: <7968d7490807281554u3954cf51qe2cd87b94284c77f@mail.gmail.com>

```
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

```

## Lee Marlow, 2008-07-29 00:32

Subject: Re: Showing changes about to be commited via git svn dcommit
Message-ID: <7968d7490807281732x27a3987cka664ae64351f6751@mail.gmail.com>
URL: https://gitlist.dev/e/7968d7490807281732x27a3987cka664ae64351f6751%40mail.gmail.com
In-Reply-To: <20080728235326.GQ32057@genesis.frugalware.org>

```
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
>

```
