Re: [PATCH v2 1/3] config --global --edit: create a template file if needed

2014-07-25 Thread Junio C Hamano
Matthieu Moy writes: > When the user has no ~/.gitconfig file, git config --global --edit used > to launch an editor on an nonexistant file name. > > Instead, create a file with a default content before launching the > editor. The template contains only commented-out entries, to save a few > keys

[PATCH v2 1/3] config --global --edit: create a template file if needed

2014-07-25 Thread Matthieu Moy
When the user has no ~/.gitconfig file, git config --global --edit used to launch an editor on an nonexistant file name. Instead, create a file with a default content before launching the editor. The template contains only commented-out entries, to save a few keystrokes for the user. If the values