* [PATCH v4] git-svn: clarify the referent of dcommit's optional argument
@ 2012-05-16 20:42 Jon Seymour
  2012-05-16 20:45 ` Jon Seymour
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Seymour @ 2012-05-16 20:42 UTC (permalink / raw)
  To: git; +Cc: gitster, normalperson, trast, Jon Seymour
The documentation of the dcommit subcommand is reworded to clarify that
the optional argument refers to a git branch, not an SVN branch.
The discussion of the optional argument is put into its own paragraph
as is the guidance about using 'dcommit' in preference to 'set-tree'.
The section on REBASE vs. PULL/MERGE is reworded to incorporate the
advice to prefer 'git rebase' previously in the description of 'dcommit'.
Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
---
 Documentation/git-svn.txt | 40 +++++++++++++++++++---------------------
 1 file changed, 19 insertions(+), 21 deletions(-)
Restore original meaning that pull/merge causes issues specifically 
with set-tree A..B (not with set-tree A, in general).
diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index 34ee785..4384ed9 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -189,18 +189,16 @@ and have no uncommitted changes.
 	last fetched commit from the upstream SVN.
 
 'dcommit'::
-	Commit each diff from a specified head directly to the SVN
+	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.
-	It is recommended that you run 'git svn' fetch and rebase (not
-	pull or merge) your commits against the latest changes in the
-	SVN repository.
-	An optional revision or branch argument may be specified, and
-	causes 'git svn' to do all work on that revision/branch
-	instead of HEAD.
-	This is advantageous over 'set-tree' (below) because it produces
-	cleaner, more linear history.
++
+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).
 +
 --no-rebase;;
 	After committing, do not rebase or reset.
@@ -800,18 +798,18 @@ have each person clone that repository with 'git clone':
 
 REBASE VS. PULL/MERGE
 ---------------------
-
-Originally, 'git svn' recommended that the 'remotes/git-svn' branch be
-pulled or merged from.  This is because the author favored
-`git svn set-tree B` to commit a single head rather than the
-`git svn set-tree A..B` notation to commit multiple commits.
-
-If you use `git svn set-tree A..B` to commit several diffs and you do
-not have the latest remotes/git-svn merged into my-branch, you should
-use `git svn rebase` to update your work branch instead of `git pull` or
-`git merge`.  `pull`/`merge` can cause non-linear history to be flattened
-when committing into SVN, which can lead to merge commits reversing
-previous commits in SVN.
+Prefer to use 'git svn rebase' or 'git rebase', rather than
+'git pull' or 'git merge' to synchronize unintegrated commits with a 'git svn'
+branch. Doing so will keep the history of unintegrated commits linear with
+respect to the upstream SVN repository and allow the use of the preferred
+'git svn dcommit' subcommand to push unintegrated commits back into SVN.
+
+Originally, 'git svn' recommended that developers pulled or merged from
+the 'git svn' branch.  This was because the author favored `git svn set-tree B`
+to commit a single head rather than the `git svn set-tree A..B` notation to
+commit multiple commits. Use of 'git pull' or 'git merge' with `git svn set-tree A...B` 
+will cause non-linear history will be flattened when committing into SVN and 
+this can lead to merge commits unexpectedly reversing previous commits in SVN.
 
 MERGE TRACKING
 --------------
-- 
1.7.10.1.514.ge33c7ea
^ permalink raw reply related	[flat|nested] 5+ messages in thread
* Re: [PATCH v4] git-svn: clarify the referent of dcommit's optional argument
  2012-05-16 20:42 [PATCH v4] git-svn: clarify the referent of dcommit's optional argument Jon Seymour
@ 2012-05-16 20:45 ` Jon Seymour
  2012-05-16 22:49   ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Seymour @ 2012-05-16 20:45 UTC (permalink / raw)
  To: git
On Thu, May 17, 2012 at 6:42 AM, Jon Seymour <jon.seymour@gmail.com> wrote:
> The documentation of the dcommit subcommand is reworded to clarify that
> the optional argument refers to a git branch, not an SVN branch.
>
> The discussion of the optional argument is put into its own paragraph
> as is the guidance about using 'dcommit' in preference to 'set-tree'.
>
> The section on REBASE vs. PULL/MERGE is reworded to incorporate the
> advice to prefer 'git rebase' previously in the description of 'dcommit'.
>
> Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
> ---
>  Documentation/git-svn.txt | 40 +++++++++++++++++++---------------------
>  1 file changed, 19 insertions(+), 21 deletions(-)
>
> Restore original meaning that pull/merge causes issues specifically
> with set-tree A..B (not with set-tree A, in general).
>
> diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
> index 34ee785..4384ed9 100644
> --- a/Documentation/git-svn.txt
> +++ b/Documentation/git-svn.txt
> @@ -189,18 +189,16 @@ and have no uncommitted changes.
>        last fetched commit from the upstream SVN.
>
>  'dcommit'::
> -       Commit each diff from a specified head directly to the SVN
> +       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.
> -       It is recommended that you run 'git svn' fetch and rebase (not
> -       pull or merge) your commits against the latest changes in the
> -       SVN repository.
> -       An optional revision or branch argument may be specified, and
> -       causes 'git svn' to do all work on that revision/branch
> -       instead of HEAD.
> -       This is advantageous over 'set-tree' (below) because it produces
> -       cleaner, more linear history.
> ++
> +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).
>  +
>  --no-rebase;;
>        After committing, do not rebase or reset.
> @@ -800,18 +798,18 @@ have each person clone that repository with 'git clone':
>
>  REBASE VS. PULL/MERGE
>  ---------------------
> -
> -Originally, 'git svn' recommended that the 'remotes/git-svn' branch be
> -pulled or merged from.  This is because the author favored
> -`git svn set-tree B` to commit a single head rather than the
> -`git svn set-tree A..B` notation to commit multiple commits.
> -
> -If you use `git svn set-tree A..B` to commit several diffs and you do
> -not have the latest remotes/git-svn merged into my-branch, you should
> -use `git svn rebase` to update your work branch instead of `git pull` or
> -`git merge`.  `pull`/`merge` can cause non-linear history to be flattened
> -when committing into SVN, which can lead to merge commits reversing
> -previous commits in SVN.
> +Prefer to use 'git svn rebase' or 'git rebase', rather than
> +'git pull' or 'git merge' to synchronize unintegrated commits with a 'git svn'
> +branch. Doing so will keep the history of unintegrated commits linear with
> +respect to the upstream SVN repository and allow the use of the preferred
> +'git svn dcommit' subcommand to push unintegrated commits back into SVN.
> +
> +Originally, 'git svn' recommended that developers pulled or merged from
> +the 'git svn' branch.  This was because the author favored `git svn set-tree B`
> +to commit a single head rather than the `git svn set-tree A..B` notation to
> +commit multiple commits. Use of 'git pull' or 'git merge' with `git svn set-tree A...B`
A...B -> A..B
Will fix in next iteration, assuming Junio and Eric are otherwise
happy with the update.
jon.
^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [PATCH v4] git-svn: clarify the referent of dcommit's optional argument
  2012-05-16 20:45 ` Jon Seymour
@ 2012-05-16 22:49   ` Junio C Hamano
  2012-05-17  1:46     ` Jon Seymour
  0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2012-05-16 22:49 UTC (permalink / raw)
  To: Jon Seymour; +Cc: git, normalperson, trast
Jon Seymour <jon.seymour@gmail.com> writes:
>> +Originally, 'git svn' recommended that developers pulled or merged from
>> +the 'git svn' branch.  This was because the author favored `git svn set-tree B`
>> +to commit a single head rather than the `git svn set-tree A..B` notation to
>> +commit multiple commits. Use of 'git pull' or 'git merge' with `git svn set-tree A...B`
>
> A...B -> A..B
>
> Will fix in next iteration, assuming Junio and Eric are otherwise
> happy with the update.
I don't have an opinion on the latter half of the patch that is primarily
about the rationale given by "the author", i.e. Eric ;-), but the
description of dcommit subcommand itself certainly looks simpler and more
readble to me.
Thanks.
^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [PATCH v4] git-svn: clarify the referent of dcommit's optional argument
  2012-05-16 22:49   ` Junio C Hamano
@ 2012-05-17  1:46     ` Jon Seymour
  2012-05-17  2:27       ` Eric Wong
  0 siblings, 1 reply; 5+ messages in thread
From: Jon Seymour @ 2012-05-17  1:46 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, normalperson, trast
On Thu, May 17, 2012 at 8:49 AM, Junio C Hamano <gitster@pobox.com> wrote:
> Jon Seymour <jon.seymour@gmail.com> writes:
>
>>> +Originally, 'git svn' recommended that developers pulled or merged from
>>> +the 'git svn' branch.  This was because the author favored `git svn set-tree B`
>>> +to commit a single head rather than the `git svn set-tree A..B` notation to
>>> +commit multiple commits. Use of 'git pull' or 'git merge' with `git svn set-tree A...B`
>>
>> A...B -> A..B
>>
>> Will fix in next iteration, assuming Junio and Eric are otherwise
>> happy with the update.
>
> I don't have an opinion on the latter half of the patch that is primarily
> about the rationale given by "the author", i.e. Eric ;-), but the
> description of dcommit subcommand itself certainly looks simpler and more
> readble to me.
>
> Thanks.
>
>
Ok, I'll fix the ... issue mentioned above and (also some trailing
whitespace) once Eric has given his feedback or acknowledgement.
jon.
^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [PATCH v4] git-svn: clarify the referent of dcommit's optional argument
  2012-05-17  1:46     ` Jon Seymour
@ 2012-05-17  2:27       ` Eric Wong
  0 siblings, 0 replies; 5+ messages in thread
From: Eric Wong @ 2012-05-17  2:27 UTC (permalink / raw)
  To: Jon Seymour; +Cc: Junio C Hamano, git, trast
Jon Seymour <jon.seymour@gmail.com> wrote:
> Ok, I'll fix the ... issue mentioned above and (also some trailing
> whitespace) once Eric has given his feedback or acknowledgement.
Looks good to me.  Can you be sure to wrap changes at <80 chars
(I like big fonts :D)
^ permalink raw reply	[flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-05-17  2:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-16 20:42 [PATCH v4] git-svn: clarify the referent of dcommit's optional argument Jon Seymour
2012-05-16 20:45 ` Jon Seymour
2012-05-16 22:49   ` Junio C Hamano
2012-05-17  1:46     ` Jon Seymour
2012-05-17  2:27       ` Eric Wong
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).