Interface BranchListOptions

BranchListOptions defines the supported options for listing Git branches.

Hierarchy

Properties

--abbrev?: string | number

Show the shortest prefix that is at least hexdigits long that uniquely identifies the object. See also --no-abbrev.

--all?: null

Lists both remote-tracking branches and local branches.

--column?: null | string | string[]

Displays the tag listing in columns. See also --no-column.

--contains?: null | string | string[]

Lists branches which contain the specified commit; HEAD if not specified. See also --no-contains.

--format?: string

Interpolates %(fieldname) from a branch ref being shown and the object it points at.

--ignore-case?: null

Makes sorting and filtering tags case insensitive.

--list?: null

Lists branches.

--merged?: null | string | string[]

Lists branches whose commits are reachable from the specified commit; HEAD if not specified. See also --no-merged.

--no-abbrev?: null

Displays full sha1s in the output. See also --abbrev.

--no-column?: null

Does not display the tag listing in columns. See also --column.

--no-contains?: null | string | string[]

Lists branches which don't contain the specified commit; HEAD if not specified. See also --contains.

--no-merged?: null | string | string[]

Lists refs whose commits are not reachable from the specified commit; HEAD if not specified. See also --merged.

--points-at?: null | string

Lists branches of the given object.

--remotes?: null

Lists or deletes (if used with --delete) the remote-tracking branches.

--show-current?: null

Prints the name of the current branch.

--sort?: string | string[]

Sorts based on the given keys.

--verbose?: null | [null, null?]

Show the sha1 and commit subject line for each head in list mode. May be repeated to include the path of the linked worktree (if any) and the name of the upstream branch.