git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Documentation fixes for git-svn.txt
@ 2011-04-22 17:03 Valentin Haenel
  2011-04-22 17:03 ` [PATCH 1/2] git-svn.txt: move option descriptions Valentin Haenel
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Valentin Haenel @ 2011-04-22 17:03 UTC (permalink / raw)
  To: git; +Cc: Eric Wong, Shawn O. Pearce, Junio C Hamano, Valentin Haenel

Hi,

the command documentation for 'git svn fetch' lists the following two
options:

  --use-log-author

and

  --add-author-from

However, as the current description of both states, they are also
applicable to 'git svn' subcommands other than fetch. The first patch
moves them, the second patch applies some cosmetics.

My remaining question regarding the second option, '--add-author-from',
is about the subcommands which it is applicable to. The current
documentation states 'commit' and 'dcommit'. My feeling is that 'commit'
is a typo, since 'git svn' does not have a 'commit' subcommand. I had a
look at the code, and while I am not familiar with perl, it seems to me
that the three subcommands that use the option are 'commit-diff',
'set-tree' and 'dcommit'. But this is non-trivial -- feedback is
appreciated.

V-

Valentin Haenel (2):
  git-svn.txt: move option descriptions
  git-svn.txt: small typeface improvements

 Documentation/git-svn.txt |   23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 deletions(-)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 1/2] git-svn.txt: move option descriptions
  2011-04-22 17:03 [PATCH 0/2] Documentation fixes for git-svn.txt Valentin Haenel
@ 2011-04-22 17:03 ` Valentin Haenel
  2011-04-22 17:03 ` [PATCH 2/2] git-svn.txt: small typeface improvements Valentin Haenel
  2011-04-25 21:06 ` [PATCH 0/2] Documentation fixes for git-svn.txt Eric Wong
  2 siblings, 0 replies; 9+ messages in thread
From: Valentin Haenel @ 2011-04-22 17:03 UTC (permalink / raw)
  To: git; +Cc: Eric Wong, Shawn O. Pearce, Junio C Hamano, Valentin Haenel

The options '---use-log-author' and '--add-author-from' are applicable to other
subcommands except 'fetch' -- therefore move them from the 'fetch' section to
the more general 'options' section

Signed-off-by: Valentin Haenel <valentin.haenel@gmx.de>
---
 Documentation/git-svn.txt |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index 30a6748..e12f9f8 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -145,17 +145,6 @@ Skip "branches" and "tags" of first level directories;;
 ------------------------------------------------------------------------
 --
 
---use-log-author;;
-	When retrieving svn commits into git (as part of fetch, rebase, or
-	dcommit operations), look for the first From: or Signed-off-by: line
-	in the log message and use that as the author string.
---add-author-from;;
-	When committing to svn from git (as part of commit or dcommit
-	operations), if the existing log message doesn't already have a
-	From: or Signed-off-by: line, append a From: line based on the
-	git commit's author string.  If you use this, then --use-log-author
-	will retrieve a valid author string for all commits.
-
 'clone'::
 	Runs 'init' and 'fetch'.  It will automatically create a
 	directory based on the basename of the URL passed to it;
@@ -572,6 +561,17 @@ repository that will be fetched from.
 For 'branch' and 'tag', display the urls that will be used for copying when
 creating the branch or tag.
 
+--use-log-author::
+	When retrieving svn commits into git (as part of fetch, rebase, or
+	dcommit operations), look for the first From: or Signed-off-by: line
+	in the log message and use that as the author string.
+--add-author-from::
+	When committing to svn from git (as part of commit or dcommit
+	operations), if the existing log message doesn't already have a
+	From: or Signed-off-by: line, append a From: line based on the
+	git commit's author string.  If you use this, then --use-log-author
+	will retrieve a valid author string for all commits.
+
 
 ADVANCED OPTIONS
 ----------------
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 2/2] git-svn.txt: small typeface improvements
  2011-04-22 17:03 [PATCH 0/2] Documentation fixes for git-svn.txt Valentin Haenel
  2011-04-22 17:03 ` [PATCH 1/2] git-svn.txt: move option descriptions Valentin Haenel
@ 2011-04-22 17:03 ` Valentin Haenel
  2011-04-25 21:06 ` [PATCH 0/2] Documentation fixes for git-svn.txt Eric Wong
  2 siblings, 0 replies; 9+ messages in thread
From: Valentin Haenel @ 2011-04-22 17:03 UTC (permalink / raw)
  To: git; +Cc: Eric Wong, Shawn O. Pearce, Junio C Hamano, Valentin Haenel

Signed-off-by: Valentin Haenel <valentin.haenel@gmx.de>
---
 Documentation/git-svn.txt |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index e12f9f8..5c75d71 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -562,14 +562,15 @@ For 'branch' and 'tag', display the urls that will be used for copying when
 creating the branch or tag.
 
 --use-log-author::
-	When retrieving svn commits into git (as part of fetch, rebase, or
-	dcommit operations), look for the first From: or Signed-off-by: line
+	When retrieving svn commits into git (as part of 'fetch', 'rebase', or
+	'dcommit' operations), look for the first `From:` or `Signed-off-by:` line
 	in the log message and use that as the author string.
---add-author-from::
 	When committing to svn from git (as part of commit or dcommit
+--add-author-from::
+	When committing to svn from git (as part of 'commit' or 'dcommit'
 	operations), if the existing log message doesn't already have a
-	From: or Signed-off-by: line, append a From: line based on the
-	git commit's author string.  If you use this, then --use-log-author
+	`From:` or `Signed-off-by:` line, append a `From:` line based on the
+	git commit's author string.  If you use this, then `--use-log-author`
 	will retrieve a valid author string for all commits.
 
 
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/2] Documentation fixes for git-svn.txt
  2011-04-22 17:03 [PATCH 0/2] Documentation fixes for git-svn.txt Valentin Haenel
  2011-04-22 17:03 ` [PATCH 1/2] git-svn.txt: move option descriptions Valentin Haenel
  2011-04-22 17:03 ` [PATCH 2/2] git-svn.txt: small typeface improvements Valentin Haenel
@ 2011-04-25 21:06 ` Eric Wong
  2011-04-25 21:36   ` [PATCH] git-svn.txt: fix usage of --add-author-from Valentin Haenel
                     ` (3 more replies)
  2 siblings, 4 replies; 9+ messages in thread
From: Eric Wong @ 2011-04-25 21:06 UTC (permalink / raw)
  To: Valentin Haenel; +Cc: git, Shawn O. Pearce, Junio C Hamano

Valentin Haenel <valentin.haenel@gmx.de> wrote:
> My remaining question regarding the second option, '--add-author-from',
> is about the subcommands which it is applicable to. The current
> documentation states 'commit' and 'dcommit'. My feeling is that 'commit'
> is a typo, since 'git svn' does not have a 'commit' subcommand. I had a
> look at the code, and while I am not familiar with perl, it seems to me
> that the three subcommands that use the option are 'commit-diff',
> 'set-tree' and 'dcommit'. But this is non-trivial -- feedback is
> appreciated.

Yes, commit-diff, set-tree, and dcommit all use --add-author-from.

I don't have time to build the docs and test formatting, but your
changes all look reasonable, consider them:

Acked-by: Eric Wong <normalperson@yhbt.net>

Thanks!

-- 
Eric Wong

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] git-svn.txt: fix usage of --add-author-from
  2011-04-25 21:06 ` [PATCH 0/2] Documentation fixes for git-svn.txt Eric Wong
@ 2011-04-25 21:36   ` Valentin Haenel
  2011-04-25 21:58     ` Junio C Hamano
  2011-04-26 11:34   ` [PATCHv2 0/2] Documentation fixes for git-svn.txt Valentin Haenel
                     ` (2 subsequent siblings)
  3 siblings, 1 reply; 9+ messages in thread
From: Valentin Haenel @ 2011-04-25 21:36 UTC (permalink / raw)
  To: Eric Wong; +Cc: Shawn O. Pearce, Junio C Hamano, git, Valentin Haenel

The option '--add-author-from' is used in 'commit-diff', 'set-tree', and
'dcommit'

Signed-off-by: Valentin Haenel <valentin.haenel@gmx.de>
Acked-by: Eric Wong <normalperson@yhbt.net>
---
 Documentation/git-svn.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index 5c75d71..4865007 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -567,7 +567,7 @@ creating the branch or tag.
 	in the log message and use that as the author string.
 	When committing to svn from git (as part of commit or dcommit
 --add-author-from::
-	When committing to svn from git (as part of 'commit' or 'dcommit'
+	When committing to svn from git (as part of 'commit-diff', 'set-tree' or 'dcommit'
 	operations), if the existing log message doesn't already have a
 	`From:` or `Signed-off-by:` line, append a `From:` line based on the
 	git commit's author string.  If you use this, then `--use-log-author`
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] git-svn.txt: fix usage of --add-author-from
  2011-04-25 21:36   ` [PATCH] git-svn.txt: fix usage of --add-author-from Valentin Haenel
@ 2011-04-25 21:58     ` Junio C Hamano
  0 siblings, 0 replies; 9+ messages in thread
From: Junio C Hamano @ 2011-04-25 21:58 UTC (permalink / raw)
  To: Valentin Haenel; +Cc: Eric Wong, Shawn O. Pearce, git

Thanks for a resend. Very much appreciated.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCHv2 0/2] Documentation fixes for git-svn.txt
  2011-04-25 21:06 ` [PATCH 0/2] Documentation fixes for git-svn.txt Eric Wong
  2011-04-25 21:36   ` [PATCH] git-svn.txt: fix usage of --add-author-from Valentin Haenel
@ 2011-04-26 11:34   ` Valentin Haenel
  2011-04-26 11:34   ` [PATCHv2 1/2] git-svn.txt: move option descriptions Valentin Haenel
  2011-04-26 11:34   ` [PATCHv2 2/2] git-svn.txt: small typeface improvements Valentin Haenel
  3 siblings, 0 replies; 9+ messages in thread
From: Valentin Haenel @ 2011-04-26 11:34 UTC (permalink / raw)
  To: Eric Wong; +Cc: Shawn O. Pearce, Junio C Hamano, git, Valentin Haenel

Two patches I failed to resend. Now Rebased against current pu and added
Acked-by line.

Valentin Haenel (2):
  git-svn.txt: move option descriptions
  git-svn.txt: small typeface improvements

 Documentation/git-svn.txt |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCHv2 1/2] git-svn.txt: move option descriptions
  2011-04-25 21:06 ` [PATCH 0/2] Documentation fixes for git-svn.txt Eric Wong
  2011-04-25 21:36   ` [PATCH] git-svn.txt: fix usage of --add-author-from Valentin Haenel
  2011-04-26 11:34   ` [PATCHv2 0/2] Documentation fixes for git-svn.txt Valentin Haenel
@ 2011-04-26 11:34   ` Valentin Haenel
  2011-04-26 11:34   ` [PATCHv2 2/2] git-svn.txt: small typeface improvements Valentin Haenel
  3 siblings, 0 replies; 9+ messages in thread
From: Valentin Haenel @ 2011-04-26 11:34 UTC (permalink / raw)
  To: Eric Wong; +Cc: Shawn O. Pearce, Junio C Hamano, git, Valentin Haenel

The options '---use-log-author' and '--add-author-from' are applicable to other
subcommands except 'fetch' -- therefore move them from the 'fetch' section to
the more general 'options' section

Signed-off-by: Valentin Haenel <valentin.haenel@gmx.de>
Acked-by: Eric Wong <normalperson@yhbt.net>
---
 Documentation/git-svn.txt |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index c07b2ad..ba8a95e 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -145,17 +145,6 @@ Skip "branches" and "tags" of first level directories;;
 ------------------------------------------------------------------------
 --
 
---use-log-author;;
-	When retrieving svn commits into git (as part of fetch, rebase, or
-	dcommit operations), look for the first From: or Signed-off-by: line
-	in the log message and use that as the author string.
---add-author-from;;
-	When committing to svn from git (as part of 'commit-diff', 'set-tree' or 'dcommit'
-	operations), if the existing log message doesn't already have a
-	From: or Signed-off-by: line, append a From: line based on the
-	git commit's author string.  If you use this, then --use-log-author
-	will retrieve a valid author string for all commits.
-
 'clone'::
 	Runs 'init' and 'fetch'.  It will automatically create a
 	directory based on the basename of the URL passed to it;
@@ -574,6 +563,17 @@ repository that will be fetched from.
 For 'branch' and 'tag', display the urls that will be used for copying when
 creating the branch or tag.
 
+--use-log-author::
+	When retrieving svn commits into git (as part of fetch, rebase, or
+	dcommit operations), look for the first From: or Signed-off-by: line
+	in the log message and use that as the author string.
+--add-author-from::
+	When committing to svn from git (as part of 'commit-diff', 'set-tree' or 'dcommit'
+	operations), if the existing log message doesn't already have a
+	From: or Signed-off-by: line, append a From: line based on the
+	git commit's author string.  If you use this, then --use-log-author
+	will retrieve a valid author string for all commits.
+
 
 ADVANCED OPTIONS
 ----------------
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCHv2 2/2] git-svn.txt: small typeface improvements
  2011-04-25 21:06 ` [PATCH 0/2] Documentation fixes for git-svn.txt Eric Wong
                     ` (2 preceding siblings ...)
  2011-04-26 11:34   ` [PATCHv2 1/2] git-svn.txt: move option descriptions Valentin Haenel
@ 2011-04-26 11:34   ` Valentin Haenel
  3 siblings, 0 replies; 9+ messages in thread
From: Valentin Haenel @ 2011-04-26 11:34 UTC (permalink / raw)
  To: Eric Wong; +Cc: Shawn O. Pearce, Junio C Hamano, git, Valentin Haenel

Signed-off-by: Valentin Haenel <valentin.haenel@gmx.de>
Acked-by: Eric Wong <normalperson@yhbt.net>
---
 Documentation/git-svn.txt |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt
index ba8a95e..713e523 100644
--- a/Documentation/git-svn.txt
+++ b/Documentation/git-svn.txt
@@ -564,14 +564,14 @@ For 'branch' and 'tag', display the urls that will be used for copying when
 creating the branch or tag.
 
 --use-log-author::
-	When retrieving svn commits into git (as part of fetch, rebase, or
-	dcommit operations), look for the first From: or Signed-off-by: line
+	When retrieving svn commits into git (as part of 'fetch', 'rebase', or
+	'dcommit' operations), look for the first `From:` or `Signed-off-by:` line
 	in the log message and use that as the author string.
 --add-author-from::
 	When committing to svn from git (as part of 'commit-diff', 'set-tree' or 'dcommit'
 	operations), if the existing log message doesn't already have a
-	From: or Signed-off-by: line, append a From: line based on the
-	git commit's author string.  If you use this, then --use-log-author
+	`From:` or `Signed-off-by:` line, append a `From:` line based on the
+	git commit's author string.  If you use this, then `--use-log-author`
 	will retrieve a valid author string for all commits.
 
 
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-04-26 11:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-22 17:03 [PATCH 0/2] Documentation fixes for git-svn.txt Valentin Haenel
2011-04-22 17:03 ` [PATCH 1/2] git-svn.txt: move option descriptions Valentin Haenel
2011-04-22 17:03 ` [PATCH 2/2] git-svn.txt: small typeface improvements Valentin Haenel
2011-04-25 21:06 ` [PATCH 0/2] Documentation fixes for git-svn.txt Eric Wong
2011-04-25 21:36   ` [PATCH] git-svn.txt: fix usage of --add-author-from Valentin Haenel
2011-04-25 21:58     ` Junio C Hamano
2011-04-26 11:34   ` [PATCHv2 0/2] Documentation fixes for git-svn.txt Valentin Haenel
2011-04-26 11:34   ` [PATCHv2 1/2] git-svn.txt: move option descriptions Valentin Haenel
2011-04-26 11:34   ` [PATCHv2 2/2] git-svn.txt: small typeface improvements Valentin Haenel

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