diff options
author | Kirill A. Shutemov <kirill@shutemov.name> | 2014-02-19 00:58:55 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-02-18 16:12:14 -0800 |
commit | 3caec73b5568341c5d8f303692423a8e9fb0cb39 (patch) | |
tree | 469a2cb5f3e8bdaf95832eaf846ba76926b8751c /cache.h | |
parent | c8985ce05360857733738561dd6cdf964470cbdf (diff) | |
download | git-3caec73b5568341c5d8f303692423a8e9fb0cb39.tar.gz git-3caec73b5568341c5d8f303692423a8e9fb0cb39.tar.xz |
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>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1147,6 +1147,7 @@ extern int update_server_info(int); #define CONFIG_GENERIC_ERROR 7 struct git_config_source { + unsigned int use_stdin:1; const char *file; const char *blob; }; |