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

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