git-branchless-query(1)

πŸ“¦ version 0.11.1, in alpine 3.24, arch rolling, nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is the git-branchless-query(1) page from the General Commands Manual, and we're talking about query β€” Query the commit graph using the "revset" language and print matching commits. No cap, that's the whole vibe. πŸ’…

πŸ“œ SYNOPSIS πŸ“œ

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

✨ DESCRIPTION ✨

Query the commit graph using the "revset" language and print matching commits. It's giving β€œask the commit graph a little question and get matching commits back.” πŸ¦‹

If you wanna learn more about revsets, the original points you to https://github.com/arxanas/git-branchless/wiki/Reference:-Revsets β€” go read that, iykyk.

The outputted commits are guaranteed to be topologically sorted, with ancestor commits appearing first. So like, ancestors show up before their descendants β€” topo order, periodt. πŸ‘‘

πŸŽ€ OPTIONS πŸŽ€

  • --hidden β€” Include hidden commits in the results of evaluating revset expressions. Yes, even the hidden ones, bestie. πŸ™ˆ
  • -b, --branches β€” Print the branches attached to the resulting commits, rather than the commits themselves. Branch info instead of commit info, slay. 🌸
  • -r, --raw β€” Print the OID of each matching commit, one per line. This output is stable for use in scripts, so it's the main-character choice for scripting. πŸ”₯
  • -h, --help β€” Print help (see a summary with '-h'). Cute. πŸ’–
  • <REVSET> β€” The query to execute. That's the actual revset you're feeding in. ✨

okay bye bestie 🫢 β€” footer source/version sign-off: query Β· git-branchless-query(1); the original footer has no date, so I'm not inventing one. πŸ’€πŸ’œ

πŸ“¦ where this page comes from