class Git::Commands::ConfigOptionSyntax::Get

Retrieve a single config value by exact key name

Wraps ‘git config –get` to return the value of the last-matching config entry for the given key name.

@example Get a local config value

cmd = Git::Commands::ConfigOptionSyntax::Get.new(lib)
cmd.call('user.name')

@example Get a global config value

cmd = Git::Commands::ConfigOptionSyntax::Get.new(lib)
cmd.call('user.name', global: true)

@example Get a value with a type constraint

cmd = Git::Commands::ConfigOptionSyntax::Get.new(lib)
cmd.call('core.bare', type: 'bool')

@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