{"thread":{"id":"17162","subject":"[PATCH] Noted that vi is the final choice of editor in git help commit","startedAt":"2009-01-13T22:33:36Z","lastAt":"2009-01-14T11:14:26Z","messageCount":3,"participants":["Craig Fratrik","Adeodato Simó","Michael J Gruber"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"100361","messageId":"1231886016-31675-1-git-send-email-cfratrik@gmail.com","threadId":"17162","inReplyTo":null,"subject":"[PATCH] Noted that vi is the final choice of editor in git help commit","fromName":"Craig Fratrik","fromEmail":"cfratrik@gmail.com","sentAt":"2009-01-13T22:33:36Z","receivedAt":"2009-01-13T22:33:36Z","isPatch":true,"sender":{"key":"cfratrik@gmail.com","avatar":null},"body":"---\n Documentation/git-commit.txt |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt\nindex b5d81be..1b9e7a5 100644\n--- a/Documentation/git-commit.txt\n+++ b/Documentation/git-commit.txt\n@@ -318,8 +318,8 @@ ENVIRONMENT AND CONFIGURATION VARIABLES\n ---------------------------------------\n The editor used to edit the commit log message will be chosen from the\n GIT_EDITOR environment variable, the core.editor configuration variable, the\n-VISUAL environment variable, or the EDITOR environment variable (in that\n-order).\n+VISUAL environment variable, the EDITOR environment variable, or finally 'vi'\n+(in that order).\n \n HOOKS\n -----\n-- \n1.6.0.4.608.ga9645.dirty\n"},{"id":"100390","messageId":"20090114095512.GA29927@chistera.yi.org","threadId":"17162","inReplyTo":"1231886016-31675-1-git-send-email-cfratrik@gmail.com","subject":"Re: [PATCH] Noted that vi is the final choice of editor in git help commit","fromName":"Adeodato Simó","fromEmail":"dato@net.com.org.es","sentAt":"2009-01-14T09:55:12Z","receivedAt":"2009-01-14T09:55:12Z","isPatch":true,"sender":{"key":"dato@net.com.org.es","avatar":"https://gravatar.com/avatar/952ec7d5d5663eb8baf631b5c37f9c58480a881920dd5f8a2d3a71f969b72b53?d=mp&s=160"},"body":"* Craig Fratrik [Tue, 13 Jan 2009 14:33:36 -0800]:\n\n>  The editor used to edit the commit log message will be chosen from the\n>  GIT_EDITOR environment variable, the core.editor configuration variable, the\n> -VISUAL environment variable, or the EDITOR environment variable (in that\n> -order).\n> +VISUAL environment variable, the EDITOR environment variable, or finally 'vi'\n> +(in that order).\n\nMay I suggest:\n\n   The editor used to edit the commit log message will be chosen from the\n   GIT_EDITOR environment variable, the core.editor configuration variable, the\n   VISUAL environment variable, or the EDITOR environment variable (in that\n  -order).\n  +order). If none of those are set, \"vi\" will be used.\n\n-- \nAdeodato Simó                                     dato at net.com.org.es\nDebian Developer                                  adeodato at debian.org\n \nA lie can go round the world before the truth has got its boots on.\n                -- Terry Pratchett\n"},{"id":"100395","messageId":"496DC912.1070908@drmicha.warpmail.net","threadId":"17162","inReplyTo":"20090114095512.GA29927@chistera.yi.org","subject":"Re: [PATCH] Noted that vi is the final choice of editor in git help commit","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2009-01-14T11:14:26Z","receivedAt":"2009-01-14T11:14:26Z","isPatch":true,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Adeodato Simó venit, vidit, dixit 14.01.2009 10:55:\n> * Craig Fratrik [Tue, 13 Jan 2009 14:33:36 -0800]:\n> \n>>  The editor used to edit the commit log message will be chosen from the\n>>  GIT_EDITOR environment variable, the core.editor configuration variable, the\n>> -VISUAL environment variable, or the EDITOR environment variable (in that\n>> -order).\n>> +VISUAL environment variable, the EDITOR environment variable, or finally 'vi'\n>> +(in that order).\n> \n> May I suggest:\n> \n>    The editor used to edit the commit log message will be chosen from the\n>    GIT_EDITOR environment variable, the core.editor configuration variable, the\n>    VISUAL environment variable, or the EDITOR environment variable (in that\n>   -order).\n>   +order). If none of those are set, \"vi\" will be used.\n> \n\n+order). If none of those are set, \"vi\" will be used unless TERM is\n+unset or set to \"dumb\".\n\nThere is also some special parsing of the value but I don't think it\nneeds to be advertised. The terminal-less case, on the other hand, may\nbe relevant for scripters and ssh'ers.\n\nCheers,\nMichael\n"}]}