[PATCH] config: introduce GIT_GLOBAL_CONFIG to override ~/.gitconfig

2012-09-27 Thread Ramkumar Ramachandra
Signed-off-by: Ramkumar Ramachandra artag...@gmail.com --- Documentation/git-config.txt |3 +++ path.c |5 + t/t1306-xdg-files.sh |8 3 files changed, 16 insertions(+), 0 deletions(-) diff --git a/Documentation/git-config.txt

Re: [PATCH] config: introduce GIT_GLOBAL_CONFIG to override ~/.gitconfig

2012-09-27 Thread Matthieu Moy
Ramkumar Ramachandra artag...@gmail.com writes: diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt index eaea079..c8db03f 100644 --- a/Documentation/git-config.txt +++ b/Documentation/git-config.txt @@ -205,6 +205,9 @@ $GIT_DIR/config:: User-specific

Re: [PATCH] config: introduce GIT_GLOBAL_CONFIG to override ~/.gitconfig

2012-09-27 Thread Junio C Hamano
Ramkumar Ramachandra artag...@gmail.com writes: Signed-off-by: Ramkumar Ramachandra artag...@gmail.com --- Documentation/git-config.txt |3 +++ path.c |5 + t/t1306-xdg-files.sh |8 3 files changed, 16 insertions(+), 0 deletions(-)

Re: [PATCH] config: introduce GIT_GLOBAL_CONFIG to override ~/.gitconfig

2012-09-27 Thread Jeff King
On Thu, Sep 27, 2012 at 08:16:11PM +0530, Ramkumar Ramachandra wrote: diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt index eaea079..c8db03f 100644 --- a/Documentation/git-config.txt +++ b/Documentation/git-config.txt @@ -205,6 +205,9 @@ $GIT_DIR/config::

Re: [PATCH] config: introduce GIT_GLOBAL_CONFIG to override ~/.gitconfig

2012-09-27 Thread Junio C Hamano
Matthieu Moy matthieu@grenoble-inp.fr writes: Ramkumar Ramachandra artag...@gmail.com writes: diff --git a/Documentation/git-config.txt b/Documentation/git-config.txt index eaea079..c8db03f 100644 --- a/Documentation/git-config.txt +++ b/Documentation/git-config.txt @@ -205,6 +205,9 @@

Re: [PATCH] config: introduce GIT_GLOBAL_CONFIG to override ~/.gitconfig

2012-09-27 Thread Junio C Hamano
Jeff King p...@peff.net writes: Also, have you considered using a config include? Like: $ echo '[include]path = ~/my-dotfiles/gitconfig' ~/.gitconfig Very good suggestion. ... you have to bootstrap somehow (e.g., you're going to have to copy a .profile or similar to get the

Re: [PATCH] config: introduce GIT_GLOBAL_CONFIG to override ~/.gitconfig

2012-09-27 Thread Matthieu Moy
Jeff King p...@peff.net writes: Also, have you considered using a config include? Like: $ echo '[include]path = ~/my-dotfiles/gitconfig' ~/.gitconfig It's a one-time setup, and then you get updates inside my-dotfiles forever. The one-time setup is annoying, but you have to bootstrap