Interface ForEachRefOptions

ForEachRefOptions defines the supported options for the Git for-each-ref command.

Hierarchy

  • ForEachRefOptions

Properties

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

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

--count?: string | number

Limits the number of refs returned.

--format?: string

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

--ignore-case?: null

Makes sorting and filtering refs case insensitive.

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

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

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

Lists refs 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 refs of the given object.

--sort?: string | string[]

Sorts based on the given keys.