{"thread":{"id":"44624","subject":"Feature request: Set git svn options in .git/config file","startedAt":"2016-12-05T17:34:37Z","lastAt":"2016-12-11T00:06:53Z","messageCount":4,"participants":["Juergen Kosel","Eric Wong"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"306937","messageId":"1936940c-c4c8-540c-eb99-b434e8d32d6c@gmx.de","threadId":"44624","inReplyTo":null,"subject":"Feature request: Set git svn options in .git/config file","fromName":"Juergen Kosel","fromEmail":"juergen.kosel@gmx.de","sentAt":"2016-12-05T17:34:30Z","receivedAt":"2016-12-05T17:34:37Z","isPatch":false,"sender":{"key":"juergen.kosel@gmx.de","avatar":null},"body":"Hello,\n\nwhile working with a git-svn repository, I like to use the command\nline options --use-log-author and --add-author-from for all calls of\ngit svn fetch,\ngit svn rebase,\ngit svn dcommit, ...\n\nDoing so consequently, the commit-ids of each git repository, which\nhas been cloned from the same svn-repository match.\n\nUnfortunately, it is possible to forget these options on the command\nline. (And 2nd, tortoise-git does not surport it, see\nhttps://gitlab.com/tortoisegit/tortoisegit/issues/2824 ).\n\nTherefore I believe, that it would be the best solution to store the\nsettings of --add-author-from, --use-log-author and maybe\n--authors-prog in the .git/config file.\n\n\nGreetings\n\tJuergen\n"},{"id":"306977","messageId":"20161205225424.GA29771@starla","threadId":"44624","inReplyTo":"1936940c-c4c8-540c-eb99-b434e8d32d6c@gmx.de","subject":"Re: Feature request: Set git svn options in .git/config file","fromName":"Eric Wong","fromEmail":"e@80x24.org","sentAt":"2016-12-05T22:54:24Z","receivedAt":"2016-12-05T22:54:47Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Juergen Kosel <juergen.kosel@gmx.de> wrote:\n> Therefore I believe, that it would be the best solution to store the\n> settings of --add-author-from, --use-log-author and maybe\n> --authors-prog in the .git/config file.\n\nActually, \"svn.authorsProg\" is already documented as a config\noption for --authors-prog.\n\nIt's been a while since I looked at this, but in git-svn,\nall the \"--xxx-yyy\" command-line options should be available\nunder the appropriate \"svn.xxxYyy\" config key.\n\nSo, can you confirm that svn.addAuthorFrom and svn.useLogAuthor\nconfig keys work and can be documented?\n\nEven better would be for you to provide a patch to the\ndocumentation :)\nOtherwise, I can write one up sometime this week.\n\nThanks.\n"},{"id":"307019","messageId":"6160a58b-5f86-384f-30b5-2a3826019157@gmx.de","threadId":"44624","inReplyTo":"20161205225424.GA29771@starla","subject":"Re: Re: Feature request: Set git svn options in .git/config file","fromName":"Juergen Kosel","fromEmail":"juergen.kosel@gmx.de","sentAt":"2016-12-06T17:24:50Z","receivedAt":"2016-12-06T17:25:00Z","isPatch":false,"sender":{"key":"juergen.kosel@gmx.de","avatar":null},"body":"-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\n\nHello,\n\nAm 05.12.2016 um 23:54 schrieb Eric Wong:\n> So, can you confirm that svn.addAuthorFrom and svn.useLogAuthor \n> config keys work and can be documented?\n\nyes, I can confirm, that adding this configuration keys works with git\n2.1.4 work.\nI have added the config keys as follows:\n\ngit config --add --bool svn.useLogAuthor true\ngit config --add --bool svn.addAuthorFrom true\n\n> \n> Even better would be for you to provide a patch to the \n> documentation :) Otherwise, I can write one up sometime this week.\n\nMy English is not that well. So I prefer, if you update the\ndocumentation :-)\n\n\nGreetings\n\tJuergen\n\n\n-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v2\nComment: Using GnuPG with Icedove - http://www.enigmail.net/\n\niD8DBQFYRvRhYZbcPghIM9IRAjtHAJ0QaqbUxcgoPXmidIg9WALXmg1JAQCfTHFj\nwgPLKXK5Ny0bP/K9vpE9KzY=\n=A+Yy\n-----END PGP SIGNATURE-----\n"},{"id":"307458","messageId":"20161211000646.GA19328@untitled","threadId":"44624","inReplyTo":"6160a58b-5f86-384f-30b5-2a3826019157@gmx.de","subject":"[PATCH] git-svn: document useLogAuthor and addAuthorFrom config keys","fromName":"Eric Wong","fromEmail":"e@80x24.org","sentAt":"2016-12-11T00:06:46Z","receivedAt":"2016-12-11T00:06:53Z","isPatch":true,"sender":{"key":"e@80x24.org","avatar":null},"body":"Juergen Kosel <juergen.kosel@gmx.de> wrote:\n> Am 05.12.2016 um 23:54 schrieb Eric Wong:\n> > So, can you confirm that svn.addAuthorFrom and svn.useLogAuthor \n> > config keys work and can be documented?\n> \n> yes, I can confirm, that adding this configuration keys works with git\n> 2.1.4 work.\n> I have added the config keys as follows:\n> \n> git config --add --bool svn.useLogAuthor true\n> git config --add --bool svn.addAuthorFrom true\n\nThanks for testing, patch below.\n\n> > Even better would be for you to provide a patch to the \n> > documentation :) Otherwise, I can write one up sometime this week.\n> \n> My English is not that well. So I prefer, if you update the\n> documentation :-)\n\nNo problem, my asciidoc is a bit rusty, but I think\nthe formatted result will be fine.\n\n(Btw, list convention here is to reply-to-all;\n it prevents vger from being a single-point-of-failure)\n\n-------8<-------\nSubject: [PATCH] git-svn: document useLogAuthor and addAuthorFrom config keys\n\nWe've always supported these config keys in git-svn,\nso document them so users won't have to respecify them\non every invocation.\n\nReported-by: Juergen Kosel <juergen.kosel@gmx.de>\nSigned-off-by: Eric Wong <e@80x24.org>\n---\n Documentation/git-svn.txt | 8 +++++++-\n 1 file changed, 7 insertions(+), 1 deletion(-)\n\ndiff --git a/Documentation/git-svn.txt b/Documentation/git-svn.txt\nindex 5f9e65b0c..9bee9b0c4 100644\n--- a/Documentation/git-svn.txt\n+++ b/Documentation/git-svn.txt\n@@ -664,13 +664,19 @@ creating the branch or tag.\n \tWhen retrieving svn commits into Git (as part of 'fetch', 'rebase', or\n \t'dcommit' operations), look for the first `From:` or `Signed-off-by:` line\n \tin the log message and use that as the author string.\n++\n+[verse]\n+config key: svn.useLogAuthor\n+\n --add-author-from::\n \tWhen committing to svn from Git (as part of 'commit-diff', 'set-tree' or 'dcommit'\n \toperations), if the existing log message doesn't already have a\n \t`From:` 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++\n+[verse]\n+config key: svn.addAuthorFrom\n \n ADVANCED OPTIONS\n ----------------\n-- \nEW\n"}]}