git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Lee Marlow" <lee.marlow@gmail.com>
To: git@vger.kernel.org
Subject: Showing changes about to be commited via git svn dcommit
Date: Mon, 28 Jul 2008 16:54:19 -0600	[thread overview]
Message-ID: <7968d7490807281554u3954cf51qe2cd87b94284c77f@mail.gmail.com> (raw)

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

             reply	other threads:[~2008-07-28 22:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-28 22:54 Lee Marlow [this message]
2008-07-28 23:53 ` Showing changes about to be commited via git svn dcommit Miklos Vajna
2008-07-29  0:32   ` Lee Marlow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7968d7490807281554u3954cf51qe2cd87b94284c77f@mail.gmail.com \
    --to=lee.marlow@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).