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

Re: [PATCH/RFC/WIP/POC] git-gui: grep prototype

From
Bert Wesarg <bert.wesarg@googlemail.com>
Date
Nov 19, 2010, 20:16 UTC
Message-ID
<AANLkTi=-OGvTT+yVqQWUyGn0PmODr=dv1DE9fZkaEDBB@mail.gmail.com>
In-Reply-To
<20101119194907.GG26187@burratino>
On Fri, Nov 19, 2010 at 20:49, Jonathan Nieder <jrnieder@gmail.com> wrote:
> [resending to list; sorry for the noise]
No problem.
Show 12 quoted lines
>
> Bert Wesarg wrote:
>
>> Could we settle on a name space for such variables? GIT_EDITOR_* makes
>> it obvious that it is for the editor started from git.
>
> Sounds good to me.
>
> If the choice of variables ends up looking especially good, maybe
> we can pass it along to the Portland group and call it xdg-editor for
> use by other apps, too. :)
>
Interesting idea.

There is one more thing to discuss before starting collecting the variables. Has each flag its own env-variable, or do we put flags into one variable named GIT_EDITOR_FLAGS? They could be space or comma separated.

The second option sounds a little bit more future prove to me.

For non-flag arguments, there is the obvious LINENUMBER. But how do we pass columns or even a character range to the editor. They would be good for compiler output. Sure its out of score for git, but a little future-thinking will not hurt. We could add it to the LINENUMBER with a syntax like:

    <line>[:<column-start[-<column-end>]]
Bert
Previous: Jonathan Nieder
Message 9 of 9 in “git-gui: grep prototype”
  1. git-gui: grep prototypeBert Wesarg, Nov 14, 2010
  2. Jonathan NiederNov 14, 2010
  3. Bert WesargNov 14, 2010
  4. Jonathan NiederNov 14, 2010
  5. Bert WesargNov 14, 2010
  6. Jonathan NiederNov 14, 2010
  7. Bert WesargNov 19, 2010
  8. Jonathan NiederNov 19, 2010
  9. Bert WesargNov 19, 2010

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.