class Git::Commands::ConfigOptionSyntax::GetRegexp

Retrieve config entries matching a name regex

Wraps ‘git config –get-regexp` to return all config entries whose key name matches the given regular expression.

@example Get all entries matching a pattern

cmd = Git::Commands::ConfigOptionSyntax::GetRegexp.new(lib)
cmd.call('remote\..*\.url')

@example Get matching entries with value filter

cmd = Git::Commands::ConfigOptionSyntax::GetRegexp.new(lib)
cmd.call('remote\..*\.url', 'github')

@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

@api private