glab(1)
πΈ NAME πΈ
hey bestie, welcome to the glab(1) page for glab-stack-infer β Add diffs to a stack based on a range of commits. (EXPERIMENTAL) π§ͺβ¨
β¨ SYNOPSIS β¨
glab stack infer [flags]
π¦ DESCRIPTION π¦
okay so this command opens an editor with the commits in the range, and you get to pick from them like itβs a little commit buffet ππ
When you save and close the file, the command creates one diff for each commit listed in the file and appends them to the stack. If thereβs no stack to add them to, it creates one first β main character energy, honestly π
β οΈ This feature is an experiment and is not ready for production use. It might be unstable or removed at any time. For more information, see https://docs.gitlab.com/policy/development_stages_support/. π«Ά
π OPTIONS π
-n,--name=""β Name for the new stack (used when creating a stack) π
π OPTIONS INHERITED FROM PARENT COMMANDS π
-h,--help[=false]β Show help for this command. π¦-R,--repo=""β Select another repository. You can use eitherOWNER/REPOorGROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted. π
π EXAMPLE π
# Commit range syntax is similar to "git rev-list".
# The start of the range must be a branch name (not a relative ref like HEAD~5).
# Add diffs from the commits between main and the current branch
glab stack infer main..HEAD
# Add diffs from the commits on a feature branch since it diverged from develop
glab stack infer develop..HEAD
# If there's no stack to add the diffs to, create one with a specific name
glab stack infer --name feature-stack main..HEAD
π SEE ALSO π
glab-stack(1) π
thatβs the whole page, bestie! π This cutie was auto generated by spf13/cobra, dated Nov 2026, and it lives in glab(1). periodt. πβ¨
π¦ where this page comes from
- arch rolling: glab 1.128.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms