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

Re: [PATCH] Documentation: improve description of GIT_EDITOR and preference order

From
Rodrigo Silva (MestreLion) <linux@rodrigosilva.com>
Date
Mar 26, 2012, 08:11 UTC
Message-ID
<loom.20120326T100258-967@post.gmane.org>
In-Reply-To
<7vty1ftc4e.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster <at> pobox.com> writes:
Show 16 quoted lines
> >
> > diff --git a/Documentation/git-var.txt b/Documentation/git-var.txt
> > index 5317cc2..9c49163 100644
> > --- a/Documentation/git-var.txt
> > +++ b/Documentation/git-var.txt
> > @@ -43,7 +43,8 @@ GIT_EDITOR::
> >      `$SOME_ENVIRONMENT_VARIABLE`, `"C:\Program Files\Vim\gvim.exe"
> >      --nofork`.  The order of preference is the `$GIT_EDITOR`
> >      environment variable, then `core.editor` configuration, then
> > -    `$VISUAL`, then `$EDITOR`, and then finally 'vi'.
> > +    `$VISUAL`, then `$EDITOR`, and then finally a hardcoded fallback
> > +    editor set at build time, by default 'vi'.
> 
> I do not think this is needed; please file a bug to whoever is replacing
> 'vi' with 'nono' and distributing the resulting binary, without updating
> this part of the documentation.

Ok, I'll do so. Just a clarification: the actual built-time replacement value is "/usr/bin/editor", which, in my system, points to nano.

This is done in Debian and other derivatives, like Ubuntu and Linux Mint
Show 17 quoted lines
> 
> > diff --git a/Documentation/git.txt b/Documentation/git.txt
> > index d5b7667..fac57ba 100644
> > --- a/Documentation/git.txt
> > +++ b/Documentation/git.txt
> > @@ -711,6 +711,12 @@ other
> >  	a pager.  See also the `core.pager` option in
> >  	linkgit:git-config[1].
> >  
> > +'GIT_EDITOR'::
> > +    This environment variable overrides `$EDITOR` and `$VISUAL`.
> > +    It is used by several git comands when, on interactive mode,
> > +    an editor is to be launched. See also linkgit:git-var[1]
> > +    and the `core.editor` option in linkgit:git-config[1].
> > +
> 
> This is a good addition.  Thanks.
You're welcome, always glad to help such a fabulous project.
> >  'GIT_SSH'::
> >  	If this environment variable is set then 'git fetch'
> >  	and 'git push' will use this command instead
> 

So, what should I do now? Re-send the patch with just the accepted parts (and adjusting commit message accordingly)? Or this will be done by you? This is my first contribution, not sure about the workflow

Thanks, ML

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 4 in “Documentation: improve description of GIT_EDITOR and preference order”
  1. Documentation: improve description of GIT_EDITOR and preference orderRodrigo Silva (MestreLion), Mar 23, 2012
  2. Junio C HamanoMar 23, 2012
  3. Rodrigo Silva (MestreLion)Mar 26, 2012
  4. Junio C HamanoMar 26, 2012

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.