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

Re: "git config --edit" outside a Git repository

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Apr 29, 2009, 22:24 UTC
Message-ID
<94a0d4530904291524n473e790ct22494132cf844299@mail.gmail.com>
In-Reply-To
<87fxg3ffv5.fsf@iki.fi>
On Mon, Apr 20, 2009 at 7:29 PM, Teemu Likonen <tlikonen@iki.fi> wrote:
Show 10 quoted lines
> On 2009-04-18 18:10 (-0700), Junio C Hamano wrote:
>
>> * git-config learned -e option to open an editor to edit the config
>>   file directly.
>
> There's a small flaw in this feature when "git config --edit" is run
> outside a Git repository. It launches $EDITOR but complains on saving
> that the file does not exist (tried with emacsclient and vim). I think
> it should check before if there's a repository around. "git config
> --global --edit" works.
Thanks, I just sent a patch that fixes that.
-- 
Felipe Contreras
Previous: Teemu Likonen
Message 3 of 3 in “[ANNOUNCE] GIT 1.6.3.rc1”
  1. Junio C HamanoApr 19, 2009
  2. "git config --edit" outside a Git repositoryTeemu Likonen, Apr 20, 2009
  3. Felipe ContrerasApr 29, 2009

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.