]> git.ipfire.org Git - thirdparty/git.git/commit - t/t1305-config-include.sh
config: teach "git config --file -" to read from the standard input
authorKirill A. Shutemov <kirill@shutemov.name>
Tue, 18 Feb 2014 22:58:55 +0000 (00:58 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Feb 2014 00:12:14 +0000 (16:12 -0800)
commit3caec73b5568341c5d8f303692423a8e9fb0cb39
tree469a2cb5f3e8bdaf95832eaf846ba76926b8751c
parentc8985ce05360857733738561dd6cdf964470cbdf
config: teach "git config --file -" to read from the standard input

The patch extends git config --file interface to allow read config from
stdin.

Editing stdin or setting value in stdin is an error.

Include by absolute path is allowed in stdin config, but not by relative
path.

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/config.c
cache.h
config.c
t/t1300-repo-config.sh
t/t1305-config-include.sh