Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--parent or --trunk is obligatory? av stack reorder #423

Open
mchen-codaio opened this issue Oct 2, 2024 · 1 comment
Open

--parent or --trunk is obligatory? av stack reorder #423

mchen-codaio opened this issue Oct 2, 2024 · 1 comment

Comments

@mchen-codaio
Copy link

mchen-codaio commented Oct 2, 2024

When running av stack reorder, the documentation says that --parent or --trunk is unnecessary. However, this error happened when I was editing a second branch in a stack without any flags:

error: invalid stack-branch command: --parent=<branch> or --trunk=<branch> must be specified when creating the first branch

It appears to me that the parent is obligatory always and the statement "If parent is not specified, the previous branch in the stack is used (if any)." is not correct.

This is the dialogue that shows up within av stack reorder:

# Commands:
# sb, stack-branch <branch-name> [--parent <parent-branch-name> | --trunk <trunk-branch-name>]
#         Create a new branch as part of a stack. If parent is not specified,
#         the previous branch in the stack is used (if any). If trunk is
#         specified, the branch is rooted from the given branch.
#         trunk-branch-name can be either a branch name or a branch name with a
#         commit ID in the format "<branch-name>@<commit-id>".
@draftcode
Copy link
Contributor

Yes. I think the implementation is not matching with the description. Right now either --parent or --trunk is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants