"git config --edit" outside a Git repository
- From
- Teemu Likonen <tlikonen@iki.fi>
- Date
- Apr 20, 2009, 16:29 UTC
- Message-ID
- <87fxg3ffv5.fsf@iki.fi>
- In-Reply-To
- <7v1vrptpn3.fsf@gitster.siamese.dyndns.org>
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.
Otherwise this is a nice feature. :-)