class Git::Commands::ConfigOptionSyntax::GetColor

Retrieve an ANSI color string from config

Wraps ‘git config –get-color` to look up a color configuration and output the ANSI escape sequence for that color.

@example Get a color config value

cmd = Git::Commands::ConfigOptionSyntax::GetColor.new(lib)
cmd.call('color.diff.new')

@example Get a color config value with a default

cmd = Git::Commands::ConfigOptionSyntax::GetColor.new(lib)
cmd.call('color.diff.new', 'green')

@note ‘arguments` block audited against git-scm.com/docs/git-config/2.53.0

@see Git::Commands::ConfigOptionSyntax

@see git-scm.com/docs/git-config git-config documentation

@api private