git-branchless-query(1) General Commands Manual git-branchless-query(1)

query - Query the commit graph using the "revset" language and print matching commits

query [--hidden] [-b|--branches] [-r|--raw] [-h|--help] <REVSET>

Query the commit graph using the "revset" language and print matching commits.

See https://github.com/arxanas/git-branchless/wiki/Reference:-Revsets to learn more about revsets.

The outputted commits are guaranteed to be topologically sorted, with ancestor commits appearing first.

Include hidden commits in the results of evaluating revset expressions
Print the branches attached to the resulting commits, rather than the commits themselves
Print the OID of each matching commit, one per line. This output is stable for use in scripts
Print help (see a summary with '-h')
<REVSET>
The query to execute
query