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

Re: [PATCH v2] git-svn: clarify the referent of dcommit's optional argument

From
Jon Seymour <jon.seymour@gmail.com>
Date
May 15, 2012, 11:15 UTC
Message-ID
<CAH3Anrr11eLiHkasdLxAWD9--B6QNq5-kFfO+Xg1F5xTDS56zg@mail.gmail.com>
In-Reply-To
<7vr4umivr2.fsf@alter.siamese.dyndns.org>
On Tue, May 15, 2012 at 2:16 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 6 quoted lines
>
> The only reason why the original is not ordered that way, as far as I can
> tell, is because "It is recommended that" was part of an existing paragraph
> when dd31da2 (git-svn: allow dcommit to take an alternate head, 2006-12-12)
> added "An optional ...", so it was tucked after existing paragraph without
> reading the resulting whole to see if "at the very end" was the best place.
Re-reading this, I don't think the advice:
    "It is recommended that you run 'git svn' fetch and rebase (not
    pull or merge) your commits against the latest changes in the =C2=A0SVN
    repository."
really belongs in the description of dcommit at all.
My proposed rewording for dcommit is:

"Commit each diff from the current branch directly to the SVN repository, and then rebase or reset (depending on whether or not there is a diff between SVN and head). This will create a revision in SVN for each commit in git.

When an optional git branch name (or a git commit object name) is specified as an argument, the subcommand works on the specified branch, not on the current branch.

Use of dcommit is preferred to set-tree (below)."

There is a section in "REBASE VS. PULL/MERGE" which perhaps could be reworded to include any points in the text I propose to omit from 'dcommit' which aren't already covered there.

jon.
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 7 in “git-svn: clarify the referent of dcommit's optional argument”
  1. git-svn: clarify the referent of dcommit's optional argumentJon Seymour, May 14, 2012
  2. Jon SeymourMay 14, 2012
  3. Junio C HamanoMay 14, 2012
  4. Jon SeymourMay 15, 2012
  5. Junio C HamanoMay 15, 2012
  6. Eric WongMay 16, 2012
  7. Thomas RastMay 18, 2012

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.