]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'tb/config-default'
authorJunio C Hamano <gitster@pobox.com>
Tue, 8 May 2018 06:59:27 +0000 (15:59 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 May 2018 06:59:27 +0000 (15:59 +0900)
"git config --get" learned the "--default" option, to help the
calling script.  Building on top of the tb/config-type topic, the
"git config" learns "--type=color" type.  Taken together, you can
do things like "git config --get foo.color --default blue" and get
the ANSI color sequence for the color given to foo.color variable,
or "blue" if the variable does not exist.

* tb/config-default:
  builtin/config: introduce `color` type specifier
  config.c: introduce 'git_config_color' to parse ANSI colors
  builtin/config: introduce `--default`

1  2 
config.c
config.h
t/t1300-config.sh

diff --cc config.c
Simple merge
diff --cc config.h
Simple merge
Simple merge