{"thread":{"id":"42770","subject":"[PATCH v14 20/21] index-helper: indexhelper.exitAfter config","startedAt":"2016-07-04T06:05:37Z","lastAt":"2016-07-07T12:34:15Z","messageCount":4,"participants":["David Turner","Junio C Hamano","Johannes Schindelin"],"isPatch":true,"patchVersion":14,"patchTotal":21},"messages":[{"id":"290782","messageId":"1467612324-23556-1-git-send-email-novalis@novalis.org","threadId":"42770","inReplyTo":null,"subject":"[PATCH v14 20/21] index-helper: indexhelper.exitAfter config","fromName":"David Turner","fromEmail":"novalis@novalis.org","sentAt":"2016-07-04T06:05:23Z","receivedAt":"2016-07-04T06:05:37Z","isPatch":true,"sender":{"key":"novalis@novalis.org","avatar":"https://avatars.githubusercontent.com/u/77003?v=4"},"body":"From: David Turner <dturner@twopensource.com>\n\nAdd a configuration variable, indexhelper.exitAfter, which provides a\ndefault time to keep the index-helper alive.  This is useful with\nindexhelper.autorun; some users will want to keep the\nautomatically-run index-helper alive across their lunch break and will\nthus set indexhelper.exitAfter to a high value.\n\nSigned-off-by: David Turner <dturner@twopensource.com>\nSigned-off-by: Junio C Hamano <gitster@pobox.com>\n---\n Documentation/config.txt | 4 ++++\n index-helper.c           | 2 ++\n t/t7900-index-helper.sh  | 8 ++++++++\n 3 files changed, 14 insertions(+)\n\ndiff --git a/Documentation/config.txt b/Documentation/config.txt\nindex 385ea66..a6330b1 100644\n--- a/Documentation/config.txt\n+++ b/Documentation/config.txt\n@@ -1860,6 +1860,10 @@ indexhelper.autorun::\n \tAutomatically run git index-helper when any builtin git\n \tcommand is run inside a repository.\n \n+indexhelper.exitAfter::\n+\tWhen no exit-after argument is given, git index-helper defaults\n+\tto this number of seconds. Specify 0 to wait forever. Default is 600.\n+\n init.templateDir::\n \tSpecify the directory from which templates will be copied.\n \t(See the \"TEMPLATE DIRECTORY\" section of linkgit:git-init[1].)\ndiff --git a/index-helper.c b/index-helper.c\nindex af35485..7e62425 100644\n--- a/index-helper.c\n+++ b/index-helper.c\n@@ -399,6 +399,8 @@ int main(int argc, char **argv)\n \tgit_extract_argv0_path(argv[0]);\n \tgit_setup_gettext();\n \n+\tgit_config_get_int(\"indexhelper.exitafter\", &idle_in_seconds);\n+\n \tif (argc == 2 && !strcmp(argv[1], \"-h\"))\n \t\tusage_with_options(usage_text, options);\n \ndiff --git a/t/t7900-index-helper.sh b/t/t7900-index-helper.sh\nindex 15ba612..12b5bf7 100755\n--- a/t/t7900-index-helper.sh\n+++ b/t/t7900-index-helper.sh\n@@ -68,4 +68,12 @@ test_expect_success 'index-helper autorun works' '\n \ttest_path_is_missing .git/index-helper.sock\n '\n \n+test_expect_success 'indexhelper.exitafter config works' '\n+\ttest_when_finished \"git index-helper --kill\" &&\n+\ttest_config indexhelper.exitafter 1 &&\n+\tgit index-helper --detach &&\n+\tsleep 3 &&\n+\ttest_path_is_missing .git/index-helper.sock\n+'\n+\n test_done\n-- \n1.9.1\n\n"},{"id":"290783","messageId":"1467612324-23556-2-git-send-email-novalis@novalis.org","threadId":"42770","inReplyTo":"1467612324-23556-1-git-send-email-novalis@novalis.org","subject":"[PATCH v14 21/21] mailmap: use main email address for dturner","fromName":"David Turner","fromEmail":"novalis@novalis.org","sentAt":"2016-07-04T06:05:24Z","receivedAt":"2016-07-04T06:05:42Z","isPatch":true,"sender":{"key":"novalis@novalis.org","avatar":"https://avatars.githubusercontent.com/u/77003?v=4"},"body":"Signed-off-by: David Turner <novalis@novalis.org>\n---\n .mailmap | 1 +\n 1 file changed, 1 insertion(+)\n\ndiff --git a/.mailmap b/.mailmap\nindex e5b4126..edcae89 100644\n--- a/.mailmap\n+++ b/.mailmap\n@@ -46,6 +46,7 @@ David D. Kilzer <ddkilzer@kilzer.net>\n David Kågedal <davidk@lysator.liu.se>\n David Reiss <dreiss@facebook.com> <dreiss@dreiss-vmware.(none)>\n David S. Miller <davem@davemloft.net>\n+David Turner <novalis@novalis.org> <dturner@twopensource.com>\n Deskin Miller <deskinm@umich.edu>\n Dirk Süsserott <newsletter@dirk.my1.cc>\n Eric Blake <eblake@redhat.com> <ebb9@byu.net>\n-- \n1.9.1\n\n"},{"id":"290894","messageId":"xmqq4m82tzun.fsf@gitster.mtv.corp.google.com","threadId":"42770","inReplyTo":"1467612324-23556-2-git-send-email-novalis@novalis.org","subject":"Re: [PATCH v14 21/21] mailmap: use main email address for dturner","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2016-07-06T17:56:16Z","receivedAt":"2016-07-06T17:57:15Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"David Turner <novalis@novalis.org> writes:\n\n> Signed-off-by: David Turner <novalis@novalis.org>\n> ---\n>  .mailmap | 1 +\n>  1 file changed, 1 insertion(+)\n>\n> diff --git a/.mailmap b/.mailmap\n> index e5b4126..edcae89 100644\n> --- a/.mailmap\n> +++ b/.mailmap\n> @@ -46,6 +46,7 @@ David D. Kilzer <ddkilzer@kilzer.net>\n>  David Kågedal <davidk@lysator.liu.se>\n>  David Reiss <dreiss@facebook.com> <dreiss@dreiss-vmware.(none)>\n>  David S. Miller <davem@davemloft.net>\n> +David Turner <novalis@novalis.org> <dturner@twopensource.com>\n>  Deskin Miller <deskinm@umich.edu>\n>  Dirk Süsserott <newsletter@dirk.my1.cc>\n>  Eric Blake <eblake@redhat.com> <ebb9@byu.net>\n\nLet me take this separately and directly to the 'master', not as\npart of this series.\n\nNot that I am rejecting the remainder of the series, though.\n\nThanks.\n"},{"id":"290932","messageId":"alpine.DEB.2.20.1607071426090.6426@virtualbox","threadId":"42770","inReplyTo":"xmqq4m82tzun.fsf@gitster.mtv.corp.google.com","subject":"Re: [PATCH v14 21/21] mailmap: use main email address for dturner","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2016-07-07T12:27:18Z","receivedAt":"2016-07-07T12:34:15Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Wed, 6 Jul 2016, Junio C Hamano wrote:\n\n> David Turner <novalis@novalis.org> writes:\n> \n> > Signed-off-by: David Turner <novalis@novalis.org>\n> > ---\n> >  .mailmap | 1 +\n> >  1 file changed, 1 insertion(+)\n> >\n> > diff --git a/.mailmap b/.mailmap\n> > index e5b4126..edcae89 100644\n> > --- a/.mailmap\n> > +++ b/.mailmap\n> > @@ -46,6 +46,7 @@ David D. Kilzer <ddkilzer@kilzer.net>\n> >  David Kågedal <davidk@lysator.liu.se>\n> >  David Reiss <dreiss@facebook.com> <dreiss@dreiss-vmware.(none)>\n> >  David S. Miller <davem@davemloft.net>\n> > +David Turner <novalis@novalis.org> <dturner@twopensource.com>\n> >  Deskin Miller <deskinm@umich.edu>\n> >  Dirk Süsserott <newsletter@dirk.my1.cc>\n> >  Eric Blake <eblake@redhat.com> <ebb9@byu.net>\n> \n> Let me take this separately and directly to the 'master', not as\n> part of this series.\n> \n> Not that I am rejecting the remainder of the series, though.\n\nSpeaking of which... Dave, I see that a lot of the patches in the series\nstill use the old mail address. Maybe change that?\n\nCiao,\nDscho"}]}