sincecutoff.com
← all changes

glab stack infer creates layers from a commit range

Introduced 2026-05-27 · score 0.90

HOW TO USE IT

When you need to create stack layers from commits in a range, run `glab stack infer <revision-range>`; the command opens an editor to select commits and creates a diff for each selected commit. The start of the range must be a branch name, not a relative ref such as `HEAD~5`.

glab stack infer main..HEAD
glab stack infer --name feature-stack main..HEAD

WHY THIS HELPS

Create stack layers from a range of commits in a repository.

REQUIREMENTS AND LIMITATIONS

  • Version: v1.100.0
  • <revision-range> (required): Commit range; start must be a branch name, not a relative ref such as `HEAD~5`.
  • -n, --name <string>: Name for the new stack when creating one.
  • -R, --repo <string>: Select another repository by OWNER/REPO, GROUP/NAMESPACE/REPO, full URL, or Git URL.
  • Prerequisite: `glab stack` is experimental and may be unstable or removed.
  • The command operates on a commit range.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card