class Git::Commands::ConfigOptionSyntax::GetColorBool

Query whether color output is enabled for a config key

Wraps ‘git config –get-colorbool` to check whether color output should be used. This command has no subcommand equivalent even in git 2.46.0 — it exists only in the option-syntax interface.

@example Query whether color is enabled for diff

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

@example Query with explicit stdout-is-tty hint

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

@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