git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Showing changes about to be commited via git svn dcommit

From
Lee Marlow <lee.marlow@gmail.com>
Date
Jul 28, 2008, 22:54 UTC
Message-ID
<7968d7490807281554u3954cf51qe2cd87b94284c77f@mail.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
Next: Miklos Vajna
Message 1 of 3 in “Showing changes about to be commited via git svn dcommit”
  1. Lee MarlowJul 28, 2008
  2. Miklos VajnaJul 28, 2008
  3. Lee MarlowJul 29, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.