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

[PATCH 1/2] git-svn: add some in-code documentation (options-related).

From
Yann Dirson <ydirson@altern.org>
Date
Jun 21, 2009, 22:48 UTC
Message-ID
<1245624521-30769-2-git-send-email-ydirson@altern.org>
In-Reply-To
<1245624521-30769-1-git-send-email-ydirson@altern.org>
Signed-off-by: Yann Dirson <ydirson@altern.org>
---
 git-svn.perl |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl
index 3301797..e2d5eff 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -71,6 +71,13 @@ my ($_stdin, $_help, $_edit,
 	$_git_format, $_commit_url, $_tag);
 $Git::SVN::_follow_parent = 1;
 $_q ||= 0;
+
+# Option structures here are used to define both command-line options
+# and git-config keys.  They are handled by read-repo-config().
+# Options in mixed case and with only a long form are only for the
+# config file.  All options available from command-line are available
+# as config-file options too, but without any dash in their names.
+
 my %remote_opts = ( 'username=s' => \$Git::SVN::Prompt::_username,
                     'config-dir=s' => \$Git::SVN::Ra::config_dir,
                     'no-auth-cache' => \$Git::SVN::Prompt::_no_auth_cache,
@@ -184,6 +191,7 @@ my %cmd = (
 			  'show-commit' => \$Git::SVN::Log::show_commit,
 			  'non-recursive' => \$Git::SVN::Log::non_recursive,
 			  'authors-file|A=s' => \$_authors,
+			  # FIXME: lacks authors-prog ?
 			  'color' => \$Git::SVN::Log::color,
 			  'pager=s' => \$Git::SVN::Log::pager
 			} ],
-- 
1.6.3.1
Previous: Yann DirsonNext: Yann Dirson
Message 4 of 8 in “Improving git-svn documentation”
  1. Yann DirsonJun 17, 2009
  2. Marc BranchaudJun 17, 2009
  3. 0/2 Some documentation improvements for git-svnYann Dirson, Jun 21, 2009
  4. 1/2 git-svn: add some in-code documentation (options-related).Yann Dirson, Jun 21, 2009
  5. 2/2 git-svn user documentation update.Yann Dirson, Jun 21, 2009
  6. Junio C HamanoJun 21, 2009
  7. Yann DirsonJun 22, 2009
  8. Eric WongJun 25, 2009

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.