{"thread":{"id":"20052","subject":"[PATCH 3/4] git-svn.txt: fix fetch flags incorrectly documented as init flags.","startedAt":"2009-07-07T20:22:18Z","lastAt":"2009-07-07T20:22:22Z","messageCount":5,"participants":["Yann Dirson"],"isPatch":true,"patchVersion":1,"patchTotal":4},"messages":[{"id":"117585","messageId":"cover.1246997775.git.ydirson@altern.org","threadId":"20052","inReplyTo":"20090706222028.GB11043@dcvr.yhbt.net","subject":"[PATCHv3 0/4] First set of improvements to git-svn user doc","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2009-07-07T20:22:18Z","receivedAt":"2009-07-07T20:22:18Z","isPatch":false,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"Yet another small improvement wrt the \"make formatting more\nconsistent\" patch, related to the formatting of flags for the\nrecently-introduced 'reset' command, as well as those of 'log' I had\nmissed.\n\nYann Dirson (4):\n  git-svn.txt: stop using dash-form of commands.\n  git-svn.txt: make formatting more consistent.\n  git-svn.txt: fix fetch flags incorrectly documented as init flags.\n  git-svn.txt: fix description of fetch flags accepted by clone.\n\n Documentation/git-svn.txt |  350 ++++++++++++++++++++++-----------------------\n 1 files changed, 171 insertions(+), 179 deletions(-)\n"},{"id":"117587","messageId":"ffe5b8e8cf2cb889cdcc04850cf867b46df9ced9.1246997775.git.ydirson@altern.org","threadId":"20052","inReplyTo":"cover.1246997775.git.ydirson@altern.org","subject":"[PATCH 1/4] git-svn.txt: stop using dash-form of commands.","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2009-07-07T20:22:19Z","receivedAt":"2009-07-07T20:22:19Z","isPatch":true,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"Also consistently use single quotes around git commands to make things clear\n(was only needed at a couple of places).\n\nSigned-off-by: Yann Dirson <ydirson@altern.org>\nAcked-by: Eric Wong <normalperson@yhbt.net>\n---\n Documentation/git-svn.txt |  120 ++++++++++++++++++++++----------------------\n 1 files changed, 60 insertions(+), 60 deletions(-)\n\ndiff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt\nindex 7e9b9a0..2818bcc 100644\n--- a/Documentation/git-svn.txt\n+++ b/Documentation/git-svn.txt\n@@ -11,11 +11,11 @@ SYNOPSIS\n \n DESCRIPTION\n -----------\n-'git-svn' is a simple conduit for changesets between Subversion and git.\n+'git svn' is a simple conduit for changesets between Subversion and git.\n It provides a bidirectional flow of changes between a Subversion and a git\n repository.\n \n-'git-svn' can track a standard Subversion repository,\n+'git svn' can track a standard Subversion repository,\n following the common \"trunk/branches/tags\" layout, with the --stdlayout option.\n It can also follow branches and tags in any layout with the -T/-t/-b options\n (see options to 'init' below, and also the 'clone' command).\n@@ -30,7 +30,7 @@ COMMANDS\n \n 'init'::\n \tInitializes an empty git repository with additional\n-\tmetadata directories for 'git-svn'.  The Subversion URL\n+\tmetadata directories for 'git svn'.  The Subversion URL\n \tmay be specified as a command-line argument, or as full\n \tURL arguments to -T/-t/-b.  Optionally, the target\n \tdirectory to operate on can be specified as a second\n@@ -100,7 +100,7 @@ COMMANDS\n \n --localtime;;\n \tStore Git commit times in the local timezone instead of UTC.  This\n-\tmakes 'git-log' (even without --date=local) show the same times\n+\tmakes 'git log' (even without --date=local) show the same times\n \tthat `svn log` would in the local timezone.\n \n --parent;;\n@@ -148,20 +148,20 @@ Examples:\n \tThis fetches revisions from the SVN parent of the current HEAD\n \tand rebases the current (uncommitted to SVN) work against it.\n \n-This works similarly to `svn update` or 'git-pull' except that\n-it preserves linear history with 'git-rebase' instead of\n-'git-merge' for ease of dcommitting with 'git-svn'.\n+This works similarly to `svn update` or 'git pull' except that\n+it preserves linear history with 'git rebase' instead of\n+'git merge' for ease of dcommitting with 'git svn'.\n \n-This accepts all options that 'git-svn fetch' and 'git-rebase'\n+This accepts all options that 'git svn fetch' and 'git rebase'\n accept.  However, '--fetch-all' only fetches from the current\n [svn-remote], and not all [svn-remote] definitions.\n \n-Like 'git-rebase'; this requires that the working tree be clean\n+Like 'git rebase'; this requires that the working tree be clean\n and have no uncommitted changes.\n \n -l;;\n --local;;\n-\tDo not fetch remotely; only run 'git-rebase' against the\n+\tDo not fetch remotely; only run 'git rebase' against the\n \tlast fetched commit from the upstream SVN.\n \n 'dcommit'::\n@@ -169,11 +169,11 @@ and have no uncommitted changes.\n \trepository, and then rebase or reset (depending on whether or\n \tnot there is a diff between SVN and head).  This will create\n \ta revision in SVN for each commit in git.\n-\tIt is recommended that you run 'git-svn' fetch and rebase (not\n+\tIt is recommended that you run 'git svn' fetch and rebase (not\n \tpull or merge) your commits against the latest changes in the\n \tSVN repository.\n \tAn optional revision or branch argument may be specified, and\n-\tcauses 'git-svn' to do all work on that revision/branch\n+\tcauses 'git svn' to do all work on that revision/branch\n \tinstead of HEAD.\n \tThis is advantageous over 'set-tree' (below) because it produces\n \tcleaner, more linear history.\n@@ -182,7 +182,7 @@ and have no uncommitted changes.\n \tAfter committing, do not rebase or reset.\n --commit-url <URL>;;\n \tCommit to this SVN URL (the full path).  This is intended to\n-\tallow existing git-svn repositories created with one transport\n+\tallow existing 'git svn' repositories created with one transport\n \tmethod (e.g. `svn://` or `http://` for anonymous read) to be\n \treused if a user is later given access to an alternate transport\n \tmethod (e.g. `svn+ssh://` or `https://`) for commit.\n@@ -258,7 +258,7 @@ NOTE: SVN itself only stores times in UTC and nothing else. The regular svn\n client converts the UTC time to the local time (or based on the TZ=\n environment). This command has the same behaviour.\n +\n-Any other arguments are passed directly to 'git-log'\n+Any other arguments are passed directly to 'git log'\n \n 'blame'::\n        Show what revision and author last modified each line of a file. The\n@@ -266,10 +266,10 @@ Any other arguments are passed directly to 'git-log'\n        `svn blame' by default. Like the SVN blame command,\n        local uncommitted changes in the working copy are ignored;\n        the version of the file in the HEAD revision is annotated. Unknown\n-       arguments are passed directly to 'git-blame'.\n+       arguments are passed directly to 'git blame'.\n +\n --git-format;;\n-\tProduce output in the same format as 'git-blame', but with\n+\tProduce output in the same format as 'git blame', but with\n \tSVN revision numbers instead of git commit hashes. In this mode,\n \tchanges that haven't been committed to SVN (including local\n \tworking-copy edits) are shown as revision 0.\n@@ -288,7 +288,7 @@ Any other arguments are passed directly to 'git-log'\n \tabsolutely no attempts to do patching when committing to SVN, it\n \tsimply overwrites files with those specified in the tree or\n \tcommit.  All merging is assumed to have taken place\n-\tindependently of 'git-svn' functions.\n+\tindependently of 'git svn' functions.\n \n 'create-ignore'::\n \tRecursively finds the svn:ignore property on directories and\n@@ -303,12 +303,12 @@ Any other arguments are passed directly to 'git-log'\n \n 'commit-diff'::\n \tCommits the diff of two tree-ish arguments from the\n-\tcommand-line.  This command does not rely on being inside an `git-svn\n+\tcommand-line.  This command does not rely on being inside an `git svn\n \tinit`-ed repository.  This command takes three arguments, (a) the\n \toriginal tree to diff against, (b) the new tree result, (c) the\n \tURL of the target Subversion repository.  The final argument\n-\t(URL) may be omitted if you are working from a 'git-svn'-aware\n-\trepository (that has been `init`-ed with 'git-svn').\n+\t(URL) may be omitted if you are working from a 'git svn'-aware\n+\trepository (that has been `init`-ed with 'git svn').\n \tThe -r<revision> option is required for this.\n \n 'info'::\n@@ -342,7 +342,7 @@ Any other arguments are passed directly to 'git-log'\n \tway to repair the repo is to use 'reset'.\n \n Only the rev_map and refs/remotes/git-svn are changed.  Follow 'reset'\n-with a 'fetch' and then 'git-reset' or 'git-rebase' to move local\n+with a 'fetch' and then 'git reset' or 'git rebase' to move local\n branches onto the new tree.\n \n -r/--revision=<n>;;\n@@ -373,8 +373,8 @@ git svn fetch\n        r2---r3---A---B master\n ------------\n \n-Then fixup \"master\" with 'git-rebase'.\n-Do NOT use 'git-merge' or your history will not be compatible with a\n+Then fixup \"master\" with 'git rebase'.\n+Do NOT use 'git merge' or your history will not be compatible with a\n future 'dcommit'!\n \n [verse]\n@@ -396,7 +396,7 @@ OPTIONS\n --shared[={false|true|umask|group|all|world|everybody}]::\n --template=<template_directory>::\n \tOnly used with the 'init' command.\n-\tThese are passed directly to 'git-init'.\n+\tThese are passed directly to 'git init'.\n \n -r <ARG>::\n --revision <ARG>::\n@@ -418,7 +418,7 @@ Only used with the 'set-tree' command.\n \n Read a list of commits from stdin and commit them in reverse\n order.  Only the leading sha1 is read from each line, so\n-'git-rev-list --pretty=oneline' output can be used.\n+'git rev-list --pretty=oneline' output can be used.\n \n --rmdir::\n \n@@ -448,7 +448,7 @@ config key: svn.edit\n \n Only used with the 'dcommit', 'set-tree' and 'commit-diff' commands.\n \n-They are both passed directly to 'git-diff-tree'; see\n+They are both passed directly to 'git diff-tree'; see\n linkgit:git-diff-tree[1] for more information.\n \n [verse]\n@@ -458,16 +458,16 @@ config key: svn.findcopiesharder\n -A<filename>::\n --authors-file=<filename>::\n \n-Syntax is compatible with the file used by 'git-cvsimport':\n+Syntax is compatible with the file used by 'git cvsimport':\n \n ------------------------------------------------------------------------\n \tloginname = Joe User <user@example.com>\n ------------------------------------------------------------------------\n \n-If this option is specified and 'git-svn' encounters an SVN\n-committer name that does not exist in the authors-file, 'git-svn'\n+If this option is specified and 'git svn' encounters an SVN\n+committer name that does not exist in the authors-file, 'git svn'\n will abort operation. The user will then have to add the\n-appropriate entry.  Re-running the previous 'git-svn' command\n+appropriate entry.  Re-running the previous 'git svn' command\n after the authors-file is modified should continue operation.\n \n config key: svn.authorsfile\n@@ -482,7 +482,7 @@ the authors file.\n \n -q::\n --quiet::\n-\tMake 'git-svn' less verbose. Specify a second time to make it\n+\tMake 'git svn' less verbose. Specify a second time to make it\n \teven less verbose.\n \n --repack[=<n>]::\n@@ -495,7 +495,7 @@ with many revisions.\n to fetch before repacking.  This defaults to repacking every\n 1000 commits fetched if no argument is specified.\n \n---repack-flags are passed directly to 'git-repack'.\n+--repack-flags are passed directly to 'git repack'.\n \n [verse]\n config key: svn.repack\n@@ -508,8 +508,8 @@ config key: svn.repackflags\n \n These are only used with the 'dcommit' and 'rebase' commands.\n \n-Passed directly to 'git-rebase' when using 'dcommit' if a\n-'git-reset' cannot be used (see 'dcommit').\n+Passed directly to 'git rebase' when using 'dcommit' if a\n+'git reset' cannot be used (see 'dcommit').\n \n -n::\n --dry-run::\n@@ -566,18 +566,18 @@ svn-remote.<name>.noMetadata::\n \n This gets rid of the 'git-svn-id:' lines at the end of every commit.\n \n-If you lose your .git/svn/git-svn/.rev_db file, 'git-svn' will not\n+If you lose your .git/svn/git-svn/.rev_db file, 'git svn' will not\n be able to rebuild it and you won't be able to fetch again,\n either.  This is fine for one-shot imports.\n \n-The 'git-svn log' command will not work on repositories using\n+The 'git svn log' command will not work on repositories using\n this, either.  Using this conflicts with the 'useSvmProps'\n option for (hopefully) obvious reasons.\n \n svn.useSvmProps::\n svn-remote.<name>.useSvmProps::\n \n-This allows 'git-svn' to re-map repository URLs and UUIDs from\n+This allows 'git svn' to re-map repository URLs and UUIDs from\n mirrors created using SVN::Mirror (or svk) for metadata.\n \n If an SVN revision has a property, \"svm:headrev\", it is likely\n@@ -596,7 +596,7 @@ svn-remote.<name>.useSvnsyncprops::\n \n svn-remote.<name>.rewriteRoot::\n \tThis allows users to create repositories from alternate\n-\tURLs.  For example, an administrator could run 'git-svn' on the\n+\tURLs.  For example, an administrator could run 'git svn' on the\n \tserver locally (accessing via file://) but wish to distribute\n \tthe repository with a public http:// or svn:// URL in the\n \tmetadata so users of it will see the public URL.\n@@ -605,14 +605,14 @@ svn.brokenSymlinkWorkaround::\n This disables potentially expensive checks to workaround broken symlinks\n checked into SVN by broken clients.  Set this option to \"false\" if you\n track a SVN repository with many empty blobs that are not symlinks.\n-This option may be changed while \"git-svn\" is running and take effect on\n-the next revision fetched.  If unset, git-svn assumes this option to be\n+This option may be changed while 'git svn' is running and take effect on\n+the next revision fetched.  If unset, 'git svn' assumes this option to be\n \"true\".\n \n --\n \n Since the noMetadata, rewriteRoot, useSvnsyncProps and useSvmProps\n-options all affect the metadata generated and used by 'git-svn'; they\n+options all affect the metadata generated and used by 'git svn'; they\n *must* be set in the configuration file before any history is imported\n and these settings should never be changed once they are set.\n \n@@ -630,7 +630,7 @@ Tracking and contributing to the trunk of a Subversion-managed project:\n \tgit svn clone http://svn.example.com/project/trunk\n # Enter the newly cloned directory:\n \tcd trunk\n-# You should be on master branch, double-check with git-branch\n+# You should be on master branch, double-check with 'git branch'\n \tgit branch\n # Do some work and commit locally to git:\n \tgit commit ...\n@@ -661,12 +661,12 @@ Tracking and contributing to an entire Subversion-managed project\n # of dcommit/rebase/show-ignore should be the same as above.\n ------------------------------------------------------------------------\n \n-The initial 'git-svn clone' can be quite time-consuming\n+The initial 'git svn clone' can be quite time-consuming\n (especially for large Subversion repositories). If multiple\n people (or one person with multiple machines) want to use\n-'git-svn' to interact with the same Subversion repository, you can\n-do the initial 'git-svn clone' to a repository on a server and\n-have each person clone that repository with 'git-clone':\n+'git svn' to interact with the same Subversion repository, you can\n+do the initial 'git svn clone' to a repository on a server and\n+have each person clone that repository with 'git clone':\n \n ------------------------------------------------------------------------\n # Do the initial import on a server\n@@ -680,7 +680,7 @@ have each person clone that repository with 'git-clone':\n \tgit fetch\n # Create a local branch from one of the branches just fetched\n \tgit checkout -b master FETCH_HEAD\n-# Initialize git-svn locally (be sure to use the same URL and -T/-b/-t options as were used on server)\n+# Initialize 'git svn' locally (be sure to use the same URL and -T/-b/-t options as were used on server)\n \tgit svn init http://svn.example.com/project\n # Pull the latest changes from Subversion\n \tgit svn rebase\n@@ -689,7 +689,7 @@ have each person clone that repository with 'git-clone':\n REBASE VS. PULL/MERGE\n ---------------------\n \n-Originally, 'git-svn' recommended that the 'remotes/git-svn' branch be\n+Originally, 'git svn' recommended that the 'remotes/git-svn' branch be\n pulled or merged from.  This is because the author favored\n `git svn set-tree B` to commit a single head rather than the\n `git svn set-tree A..B` notation to commit multiple commits.\n@@ -704,7 +704,7 @@ previous commits in SVN.\n DESIGN PHILOSOPHY\n -----------------\n Merge tracking in Subversion is lacking and doing branched development\n-with Subversion can be cumbersome as a result.  While 'git-svn' can track\n+with Subversion can be cumbersome as a result.  While 'git svn' can track\n copy history (including branches and tags) for repositories adopting a\n standard layout, it cannot yet represent merge history that happened\n inside git back upstream to SVN users.  Therefore it is advised that\n@@ -715,25 +715,25 @@ CAVEATS\n -------\n \n For the sake of simplicity and interoperating with a less-capable system\n-(SVN), it is recommended that all 'git-svn' users clone, fetch and dcommit\n-directly from the SVN server, and avoid all 'git-clone'/'pull'/'merge'/'push'\n+(SVN), it is recommended that all 'git svn' users clone, fetch and dcommit\n+directly from the SVN server, and avoid all 'git clone'/'pull'/'merge'/'push'\n operations between git repositories and branches.  The recommended\n method of exchanging code between git branches and users is\n-'git-format-patch' and 'git-am', or just 'dcommit'ing to the SVN repository.\n+'git format-patch' and 'git am', or just 'dcommit'ing to the SVN repository.\n \n-Running 'git-merge' or 'git-pull' is NOT recommended on a branch you\n+Running 'git merge' or 'git pull' is NOT recommended on a branch you\n plan to 'dcommit' from.  Subversion does not represent merges in any\n reasonable or useful fashion; so users using Subversion cannot see any\n merges you've made.  Furthermore, if you merge or pull from a git branch\n that is a mirror of an SVN branch, 'dcommit' may commit to the wrong\n branch.\n \n-'git-clone' does not clone branches under the refs/remotes/ hierarchy or\n-any 'git-svn' metadata, or config.  So repositories created and managed with\n-using 'git-svn' should use 'rsync' for cloning, if cloning is to be done\n+'git clone' does not clone branches under the refs/remotes/ hierarchy or\n+any 'git svn' metadata, or config.  So repositories created and managed with\n+using 'git svn' should use 'rsync' for cloning, if cloning is to be done\n at all.\n \n-Since 'dcommit' uses rebase internally, any git branches you 'git-push' to\n+Since 'dcommit' uses rebase internally, any git branches you 'git push' to\n before 'dcommit' on will require forcing an overwrite of the existing ref\n on the remote repository.  This is generally considered bad practice,\n see the linkgit:git-push[1] documentation for details.\n@@ -743,7 +743,7 @@ already dcommitted.  It is considered bad practice to --amend commits\n you've already pushed to a remote repository for other users, and\n dcommit with SVN is analogous to that.\n \n-When using multiple --branches or --tags, 'git-svn' does not automatically\n+When using multiple --branches or --tags, 'git svn' does not automatically\n handle name collisions (for example, if two branches from different paths have\n the same name, or if a branch and a tag have the same name).  In these cases,\n use 'init' to set up your git repository then, before your first 'fetch', edit\n@@ -769,7 +769,7 @@ for git to detect them.\n CONFIGURATION\n -------------\n \n-'git-svn' stores [svn-remote] configuration information in the\n+'git svn' stores [svn-remote] configuration information in the\n repository .git/config file.  It is similar the core git\n [remote] sections except 'fetch' keys do not accept glob\n arguments; but they are instead handled by the 'branches'\n@@ -790,7 +790,7 @@ Keep in mind that the '\\*' (asterisk) wildcard of the local ref\n however the remote wildcard may be anywhere as long as it's an\n independent path component (surrounded by '/' or EOL).   This\n type of configuration is not automatically created by 'init' and\n-should be manually entered with a text-editor or using 'git-config'.\n+should be manually entered with a text-editor or using 'git config'.\n \n SEE ALSO\n --------\n-- \n1.6.3.3\n"},{"id":"117588","messageId":"4d918af1f5122cc5b71142cd50b7d5699a2a912d.1246997775.git.ydirson@altern.org","threadId":"20052","inReplyTo":"ffe5b8e8cf2cb889cdcc04850cf867b46df9ced9.1246997775.git.ydirson@altern.org","subject":"[PATCH 2/4] git-svn.txt: make formatting more consistent.","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2009-07-07T20:22:20Z","receivedAt":"2009-07-07T20:22:20Z","isPatch":true,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"- correctly link paragraphs within list items\n- consistently format examples\n- put option alernatives on separate lines\n- always use [verse] for config items\n- always indent 1st paragraph of a list item, with a tab\n\nSigned-off-by: Yann Dirson <ydirson@altern.org>\nAcked-by: Eric Wong <normalperson@yhbt.net>\n---\n Documentation/git-svn.txt |  211 +++++++++++++++++++++-----------------------\n 1 files changed, 101 insertions(+), 110 deletions(-)\n\ndiff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt\nindex 2818bcc..f40fd42 100644\n--- a/Documentation/git-svn.txt\n+++ b/Documentation/git-svn.txt\n@@ -26,7 +26,6 @@ Subversion updated from git by the 'dcommit' command.\n \n COMMANDS\n --------\n---\n \n 'init'::\n \tInitializes an empty git repository with additional\n@@ -105,7 +104,7 @@ COMMANDS\n \n --parent;;\n \tFetch only from the SVN parent of the current HEAD.\n-\n++\n This doesn't interfere with interoperating with the Subversion\n repository you cloned from, but if you wish for your local Git\n repository to be able to interoperate with someone else's local Git\n@@ -118,20 +117,28 @@ the same local timezone.\n \tThe '--ignore-paths' option should match for every 'fetch'\n \t(including automatic fetches due to 'clone', 'dcommit',\n \t'rebase', etc) on a given repository.\n-\n++\n+[verse]\n config key: svn-remote.<name>.ignore-paths\n-\n-\tIf the ignore-paths config key is set and the command\n-\tline option is also given, both regular expressions\n-\twill be used.\n-\n++\n+If the ignore-paths config key is set and the command line option is\n+also given, both regular expressions will be used.\n++\n Examples:\n++\n+--\n+Skip \"doc*\" directory for every fetch;;\n++\n+------------------------------------------------------------------------\n+--ignore-paths=\"^doc\"\n+------------------------------------------------------------------------\n \n-\t--ignore-paths=\"^doc\" - skip \"doc*\" directory for every\n-\t    fetch.\n-\n-\t--ignore-paths=\"^[^/]+/(?:branches|tags)\" - skip\n-\t    \"branches\" and \"tags\" of first level directories.\n+Skip \"branches\" and \"tags\" of first level directories;;\n++\n+------------------------------------------------------------------------\n+--ignore-paths=\"^[^/]+/(?:branches|tags)\"\n+------------------------------------------------------------------------\n+--\n \n 'clone'::\n \tRuns 'init' and 'fetch'.  It will automatically create a\n@@ -147,15 +154,15 @@ Examples:\n 'rebase'::\n \tThis fetches revisions from the SVN parent of the current HEAD\n \tand rebases the current (uncommitted to SVN) work against it.\n-\n++\n This works similarly to `svn update` or 'git pull' except that\n it preserves linear history with 'git rebase' instead of\n 'git merge' for ease of dcommitting with 'git svn'.\n-\n++\n This accepts all options that 'git svn fetch' and 'git rebase'\n accept.  However, '--fetch-all' only fetches from the current\n [svn-remote], and not all [svn-remote] definitions.\n-\n++\n Like 'git rebase'; this requires that the working tree be clean\n and have no uncommitted changes.\n \n@@ -186,14 +193,13 @@ and have no uncommitted changes.\n \tmethod (e.g. `svn://` or `http://` for anonymous read) to be\n \treused if a user is later given access to an alternate transport\n \tmethod (e.g. `svn+ssh://` or `https://`) for commit.\n-\n++\n+[verse]\n config key: svn-remote.<name>.commiturl\n-\n config key: svn.commiturl (overwrites all svn-remote.<name>.commiturl options)\n-\n-\tUsing this option for any other purpose (don't ask)\n-\tis very strongly discouraged.\n---\n++\n+Using this option for any other purpose (don't ask) is very strongly\n+discouraged.\n \n 'branch'::\n \tCreate a branch in the SVN repository.\n@@ -232,10 +238,12 @@ where <name> is the name of the SVN repository as specified by the -R option to\n The following features from `svn log' are supported:\n +\n --\n--r/--revision=<n>[:<n>];;\n+-r <n>[:<n>];;\n+--revision=<n>[:<n>];;\n \tis supported, non-numeric args are not:\n \tHEAD, NEXT, BASE, PREV, etc ...\n--v/--verbose;;\n+-v;;\n+--verbose;;\n \tit's not completely compatible with the --verbose\n \toutput in svn log, but reasonably close.\n --limit=<n>;;\n@@ -274,7 +282,6 @@ Any other arguments are passed directly to 'git log'\n \tchanges that haven't been committed to SVN (including local\n \tworking-copy edits) are shown as revision 0.\n \n---\n 'find-rev'::\n \tWhen given an SVN revision number of the form 'rN', returns the\n \tcorresponding git commit hash (this can optionally be followed by a\n@@ -340,58 +347,56 @@ Any other arguments are passed directly to 'git log'\n \t\"checksum mismatch\" (missed a modification).  If the problem\n \tfile cannot be ignored forever (with --ignore-paths) the only\n \tway to repair the repo is to use 'reset'.\n-\n++\n Only the rev_map and refs/remotes/git-svn are changed.  Follow 'reset'\n with a 'fetch' and then 'git reset' or 'git rebase' to move local\n branches onto the new tree.\n \n--r/--revision=<n>;;\n+-r <n>;;\n+--revision=<n>;;\n \tSpecify the most recent revision to keep.  All later revisions\n \tare discarded.\n--p/--parent;;\n+-p;;\n+--parent;;\n \tDiscard the specified revision as well, keeping the nearest\n \tparent instead.\n Example:;;\n Assume you have local changes in \"master\", but you need to refetch \"r2\".\n-\n++\n ------------\n     r1---r2---r3 remotes/git-svn\n                 \\\n                  A---B master\n ------------\n-\n++\n Fix the ignore-paths or SVN permissions problem that caused \"r2\" to\n be incomplete in the first place.  Then:\n-\n++\n [verse]\n git svn reset -r2 -p\n git svn fetch\n-\n++\n ------------\n     r1---r2'--r3' remotes/git-svn\n       \\\n        r2---r3---A---B master\n ------------\n-\n++\n Then fixup \"master\" with 'git rebase'.\n Do NOT use 'git merge' or your history will not be compatible with a\n future 'dcommit'!\n-\n++\n [verse]\n git rebase --onto remotes/git-svn A^ master\n-\n++\n ------------\n     r1---r2'--r3' remotes/git-svn\n                 \\\n                  A'--B' master\n ------------\n \n-\n---\n-\n OPTIONS\n -------\n---\n \n --shared[={false|true|umask|group|all|world|everybody}]::\n --template=<template_directory>::\n@@ -400,85 +405,81 @@ OPTIONS\n \n -r <ARG>::\n --revision <ARG>::\n-\n-Used with the 'fetch' command.\n-\n+\t   Used with the 'fetch' command.\n++\n This allows revision ranges for partial/cauterized history\n to be supported.  $NUMBER, $NUMBER1:$NUMBER2 (numeric ranges),\n $NUMBER:HEAD, and BASE:$NUMBER are all supported.\n-\n++\n This can allow you to make partial mirrors when running fetch;\n but is generally not recommended because history will be skipped\n and lost.\n \n -::\n --stdin::\n-\n-Only used with the 'set-tree' command.\n-\n+\tOnly used with the 'set-tree' command.\n++\n Read a list of commits from stdin and commit them in reverse\n order.  Only the leading sha1 is read from each line, so\n 'git rev-list --pretty=oneline' output can be used.\n \n --rmdir::\n-\n-Only used with the 'dcommit', 'set-tree' and 'commit-diff' commands.\n-\n+\tOnly used with the 'dcommit', 'set-tree' and 'commit-diff' commands.\n++\n Remove directories from the SVN tree if there are no files left\n behind.  SVN can version empty directories, and they are not\n removed by default if there are no files left in them.  git\n cannot version empty directories.  Enabling this flag will make\n the commit to SVN act like git.\n-\n++\n+[verse]\n config key: svn.rmdir\n \n -e::\n --edit::\n-\n-Only used with the 'dcommit', 'set-tree' and 'commit-diff' commands.\n-\n+\tOnly used with the 'dcommit', 'set-tree' and 'commit-diff' commands.\n++\n Edit the commit message before committing to SVN.  This is off by\n default for objects that are commits, and forced on when committing\n tree objects.\n-\n++\n+[verse]\n config key: svn.edit\n \n -l<num>::\n --find-copies-harder::\n-\n-Only used with the 'dcommit', 'set-tree' and 'commit-diff' commands.\n-\n+\tOnly used with the 'dcommit', 'set-tree' and 'commit-diff' commands.\n++\n They are both passed directly to 'git diff-tree'; see\n linkgit:git-diff-tree[1] for more information.\n-\n++\n [verse]\n config key: svn.l\n config key: svn.findcopiesharder\n \n -A<filename>::\n --authors-file=<filename>::\n-\n-Syntax is compatible with the file used by 'git cvsimport':\n-\n+\tSyntax is compatible with the file used by 'git cvsimport':\n++\n ------------------------------------------------------------------------\n \tloginname = Joe User <user@example.com>\n ------------------------------------------------------------------------\n-\n++\n If this option is specified and 'git svn' encounters an SVN\n committer name that does not exist in the authors-file, 'git svn'\n will abort operation. The user will then have to add the\n appropriate entry.  Re-running the previous 'git svn' command\n after the authors-file is modified should continue operation.\n-\n++\n+[verse]\n config key: svn.authorsfile\n \n --authors-prog=<filename>::\n-\n-If this option is specified, for each SVN committer name that does not\n-exist in the authors file, the given file is executed with the committer\n-name as the first argument.  The program is expected to return a single\n-line of the form \"Name <email>\", which will be treated as if included in\n-the authors file.\n+\tIf this option is specified, for each SVN committer name that\n+\tdoes not exist in the authors file, the given file is executed\n+\twith the committer name as the first argument.  The program is\n+\texpected to return a single line of the form \"Name <email>\",\n+\twhich will be treated as if included in the authors file.\n \n -q::\n --quiet::\n@@ -487,16 +488,15 @@ the authors file.\n \n --repack[=<n>]::\n --repack-flags=<flags>::\n-\n-These should help keep disk usage sane for large fetches\n-with many revisions.\n-\n+\tThese should help keep disk usage sane for large fetches with\n+\tmany revisions.\n++\n --repack takes an optional argument for the number of revisions\n to fetch before repacking.  This defaults to repacking every\n 1000 commits fetched if no argument is specified.\n-\n++\n --repack-flags are passed directly to 'git repack'.\n-\n++\n [verse]\n config key: svn.repack\n config key: svn.repackflags\n@@ -505,41 +505,36 @@ config key: svn.repackflags\n --merge::\n -s<strategy>::\n --strategy=<strategy>::\n-\n-These are only used with the 'dcommit' and 'rebase' commands.\n-\n+\tThese are only used with the 'dcommit' and 'rebase' commands.\n++\n Passed directly to 'git rebase' when using 'dcommit' if a\n 'git reset' cannot be used (see 'dcommit').\n \n -n::\n --dry-run::\n-\n-This can be used with the 'dcommit', 'rebase', 'branch' and 'tag'\n-commands.\n-\n+\tThis can be used with the 'dcommit', 'rebase', 'branch' and\n+\t'tag' commands.\n++\n For 'dcommit', print out the series of git arguments that would show\n which diffs would be committed to SVN.\n-\n++\n For 'rebase', display the local branch associated with the upstream svn\n repository associated with the current branch and the URL of svn\n repository that will be fetched from.\n-\n++\n For 'branch' and 'tag', display the urls that will be used for copying when\n creating the branch or tag.\n \n---\n \n ADVANCED OPTIONS\n ----------------\n---\n \n -i<GIT_SVN_ID>::\n --id <GIT_SVN_ID>::\n-\n-This sets GIT_SVN_ID (instead of using the environment).  This\n-allows the user to override the default refname to fetch from\n-when tracking a single URL.  The 'log' and 'dcommit' commands\n-no longer require this switch as an argument.\n+\tThis sets GIT_SVN_ID (instead of using the environment).  This\n+\tallows the user to override the default refname to fetch from\n+\twhen tracking a single URL.  The 'log' and 'dcommit' commands\n+\tno longer require this switch as an argument.\n \n -R<remote name>::\n --svn-remote <remote name>::\n@@ -553,33 +548,30 @@ no longer require this switch as an argument.\n \tstarted tracking a branch and never tracked the trunk it was\n \tdescended from. This feature is enabled by default, use\n \t--no-follow-parent to disable it.\n-\n++\n+[verse]\n config key: svn.followparent\n \n---\n CONFIG FILE-ONLY OPTIONS\n ------------------------\n---\n \n svn.noMetadata::\n svn-remote.<name>.noMetadata::\n-\n-This gets rid of the 'git-svn-id:' lines at the end of every commit.\n-\n+\tThis gets rid of the 'git-svn-id:' lines at the end of every commit.\n++\n If you lose your .git/svn/git-svn/.rev_db file, 'git svn' will not\n be able to rebuild it and you won't be able to fetch again,\n either.  This is fine for one-shot imports.\n-\n++\n The 'git svn log' command will not work on repositories using\n this, either.  Using this conflicts with the 'useSvmProps'\n option for (hopefully) obvious reasons.\n \n svn.useSvmProps::\n svn-remote.<name>.useSvmProps::\n-\n-This allows 'git svn' to re-map repository URLs and UUIDs from\n-mirrors created using SVN::Mirror (or svk) for metadata.\n-\n+\tThis allows 'git svn' to re-map repository URLs and UUIDs from\n+\tmirrors created using SVN::Mirror (or svk) for metadata.\n++\n If an SVN revision has a property, \"svm:headrev\", it is likely\n that the revision was created by SVN::Mirror (also used by SVK).\n The property contains a repository UUID and a revision.  We want\n@@ -602,14 +594,13 @@ svn-remote.<name>.rewriteRoot::\n \tmetadata so users of it will see the public URL.\n \n svn.brokenSymlinkWorkaround::\n-This disables potentially expensive checks to workaround broken symlinks\n-checked into SVN by broken clients.  Set this option to \"false\" if you\n-track a SVN repository with many empty blobs that are not symlinks.\n-This option may be changed while 'git svn' is running and take effect on\n-the next revision fetched.  If unset, 'git svn' assumes this option to be\n-\"true\".\n-\n---\n+\tThis disables potentially expensive checks to workaround\n+\tbroken symlinks checked into SVN by broken clients.  Set this\n+\toption to \"false\" if you track a SVN repository with many\n+\tempty blobs that are not symlinks.  This option may be changed\n+\twhile 'git svn' is running and take effect on the next\n+\trevision fetched.  If unset, 'git svn' assumes this option to\n+\tbe \"true\".\n \n Since the noMetadata, rewriteRoot, useSvnsyncProps and useSvmProps\n options all affect the metadata generated and used by 'git svn'; they\n-- \n1.6.3.3\n"},{"id":"117584","messageId":"a427e73e459e18d9e28701a97eca338934d74300.1246997775.git.ydirson@altern.org","threadId":"20052","inReplyTo":"4d918af1f5122cc5b71142cd50b7d5699a2a912d.1246997775.git.ydirson@altern.org","subject":"[PATCH 3/4] git-svn.txt: fix fetch flags incorrectly documented as init flags.","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2009-07-07T20:22:21Z","receivedAt":"2009-07-07T20:22:21Z","isPatch":true,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"Signed-off-by: Yann Dirson <ydirson@altern.org>\nAcked-by: Eric Wong <normalperson@yhbt.net>\n---\n Documentation/git-svn.txt |   21 +++++++++++----------\n 1 files changed, 11 insertions(+), 10 deletions(-)\n\ndiff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt\nindex f40fd42..1e8242b 100644\n--- a/Documentation/git-svn.txt\n+++ b/Documentation/git-svn.txt\n@@ -62,16 +62,6 @@ COMMANDS\n \tSet the 'useSvnsyncProps' option in the [svn-remote] config.\n --rewrite-root=<URL>;;\n \tSet the 'rewriteRoot' option in the [svn-remote] config.\n---use-log-author;;\n-\tWhen retrieving svn commits into git (as part of fetch, rebase, or\n-\tdcommit operations), look for the first From: or Signed-off-by: line\n-\tin the log message and use that as the author string.\n---add-author-from;;\n-\tWhen committing to svn from git (as part of commit or dcommit\n-\toperations), if the existing log message doesn't already have a\n-\tFrom: or Signed-off-by: line, append a From: line based on the\n-\tgit commit's author string.  If you use this, then --use-log-author\n-\twill retrieve a valid author string for all commits.\n --username=<USER>;;\n \tFor transports that SVN handles authentication for (http,\n \thttps, and plain svn), specify the username.  For other\n@@ -140,6 +130,17 @@ Skip \"branches\" and \"tags\" of first level directories;;\n ------------------------------------------------------------------------\n --\n \n+--use-log-author;;\n+\tWhen retrieving svn commits into git (as part of fetch, rebase, or\n+\tdcommit operations), look for the first From: or Signed-off-by: line\n+\tin the log message and use that as the author string.\n+--add-author-from;;\n+\tWhen committing to svn from git (as part of commit or dcommit\n+\toperations), if the existing log message doesn't already have a\n+\tFrom: or Signed-off-by: line, append a From: line based on the\n+\tgit commit's author string.  If you use this, then --use-log-author\n+\twill retrieve a valid author string for all commits.\n+\n 'clone'::\n \tRuns 'init' and 'fetch'.  It will automatically create a\n \tdirectory based on the basename of the URL passed to it;\n-- \n1.6.3.3\n"},{"id":"117586","messageId":"e8ba63a3c233549955f6558c4b6b06aded54fd11.1246997775.git.ydirson@altern.org","threadId":"20052","inReplyTo":"a427e73e459e18d9e28701a97eca338934d74300.1246997775.git.ydirson@altern.org","subject":"[PATCH 4/4] git-svn.txt: fix description of fetch flags accepted by clone.","fromName":"Yann Dirson","fromEmail":"ydirson@altern.org","sentAt":"2009-07-07T20:22:22Z","receivedAt":"2009-07-07T20:22:22Z","isPatch":true,"sender":{"key":"ydirson@altern.org","avatar":"https://avatars.githubusercontent.com/u/1190950?v=4"},"body":"Signed-off-by: Yann Dirson <ydirson@altern.org>\nAcked-by: Eric Wong <normalperson@yhbt.net>\n---\n Documentation/git-svn.txt |    8 ++++----\n 1 files changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt\nindex 1e8242b..10af599 100644\n--- a/Documentation/git-svn.txt\n+++ b/Documentation/git-svn.txt\n@@ -147,10 +147,10 @@ Skip \"branches\" and \"tags\" of first level directories;;\n \tor if a second argument is passed; it will create a directory\n \tand work within that.  It accepts all arguments that the\n \t'init' and 'fetch' commands accept; with the exception of\n-\t'--fetch-all'.   After a repository is cloned, the 'fetch'\n-\tcommand will be able to update revisions without affecting\n-\tthe working tree; and the 'rebase' command will be able\n-\tto update the working tree with the latest changes.\n+\t'--fetch-all' and '--parent'.  After a repository is cloned,\n+\tthe 'fetch' command will be able to update revisions without\n+\taffecting the working tree; and the 'rebase' command will be\n+\table to update the working tree with the latest changes.\n \n 'rebase'::\n \tThis fetches revisions from the SVN parent of the current HEAD\n-- \n1.6.3.3\n"}]}