class Git::Commands::Branch::List

Implements the ‘git branch –list` command

@example Basic branch listing

list = Git::Commands::Branch::List.new(execution_context)
branches = list.call

@example List all branches (local and remote)

list = Git::Commands::Branch::List.new(execution_context)
all_branches = list.call(all: true)

@example List branches containing a commit

list = Git::Commands::Branch::List.new(execution_context)
branches = list.call(contains: 'abc123')

@example List branches with patterns

list = Git::Commands::Branch::List.new(execution_context)
feature_branches = list.call('feature/*')

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

@see Git::Commands::Branch

@see git-scm.com/docs/git-branch git-branch

@api private