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

[RFC] git-svn: make git-svn commit-diff able to work without explicit arguments

From
SFSteve Frécinaux <nudrema@gmail.com>
Date
Jan 2, 2007, 18:23 UTC
Message-ID
<459AA31E.5070705@gmail.com>
Hello,

When using git-svn to access a SVN repo, the commit policy may vary. While git makes you commit small patches often, svn users tend to prefer bigger patches that implement a functionnality at once.

So at the end you have a SVN commit which corresponds to several git ones.
What you can do in this case is :
   git-svn commit-diff --edit -r$REV remotes/git-svn HEAD

Which effect is that it commits (at once) all the commits between the latest svn fetch and HEAD.

What I'm proposing here is this:
  - use the latest fetched rev the default for the -r argument.
  - use remotes/git-svn and HEAD the defaults for the treeish objects.

A smarter way to take these defaults would be to take the last revision in the current branch (which can be something else than git-svn if it wasn't rebased/merged recently) and the relevant commit in the current branch.

Additionnaly, --edit could be enabled by default if -m is not set and it is used interactively, eventually using an option in repo-config.

Any comment ?
Next: Pierre Habouzit
Message 1 of 10 in “[RFC] git-svn: make git-svn commit-diff able to work without explicit arguments”
  1. Steve FrécinauxJan 2, 2007
  2. [RFC] Re: git-svn: make git-svn commit-diff able to work without explicit argumentsPierre Habouzit, Jan 2, 2007
  3. Eric WongJan 2, 2007
  4. Junio C HamanoJan 2, 2007
  5. [RFC] Re: git-svn: make git-svn commit-diff able to work without explicit argumentsPierre Habouzit, Jan 2, 2007
  6. Brian GernhardtJan 2, 2007
  7. Jakub NarebskiJan 2, 2007
  8. [RFC] Re: git-svn: make git-svn commit-diff able to work without explicit argumentsPierre Habouzit, Jan 2, 2007
  9. Junio C HamanoJan 2, 2007
  10. Steve FrécinauxJan 2, 2007

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.