Re: [PATCH] config: git_config_from_file(): handle "-" filename as stdin

2014-02-14 Thread Junio C Hamano
"Kirill A. Shutemov" writes: > On Fri, Feb 14, 2014 at 10:27:11AM -0800, Junio C Hamano wrote: > ... >> I recall that an earlier implementation of "git diff --no-index" >> that made "-" read one side to be compared from the standard input >> had exactly the same issue of comparing filename with "

Re: [PATCH] config: git_config_from_file(): handle "-" filename as stdin

2014-02-14 Thread Kirill A. Shutemov
On Fri, Feb 14, 2014 at 10:27:11AM -0800, Junio C Hamano wrote: > "Kirill A. Shutemov" writes: > > > The patch extends git config --file interface to allow read config from > > stdin. > > Thanks. The external interface proposed by this change that behaves > the way your new test expects is a go

Re: [PATCH] config: git_config_from_file(): handle "-" filename as stdin

2014-02-14 Thread Junio C Hamano
"Kirill A. Shutemov" writes: > The patch extends git config --file interface to allow read config from > stdin. Thanks. The external interface proposed by this change that behaves the way your new test expects is a good addition to the system. I would describe it as: Subject: config: teach

[PATCH] config: git_config_from_file(): handle "-" filename as stdin

2014-02-14 Thread Kirill A. Shutemov
The patch extends git config --file interface to allow read config from stdin. Signed-off-by: Kirill A. Shutemov --- config.c | 10 ++ t/t1300-repo-config.sh | 4 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/config.c b/config.c index d969a5aefc2b..f