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

cli new: Allow --before/--after without a value to default to @ #4551

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Oct 15, 2024

  1. cli new: Allow --before/--after without a value to default to @

    Without this, I find it a bit jarring that `jj new` works but `jj new
    --before` does not. By contrast, since `jj rebase` does not currently
    work, I don't think `jj rebase --before` should either.
    
    Note that `jj new --before @ another_revision` is invalid, so `jj new
    --before another_revision` can only be parsed correctly in one way. I am
    slightly concerned that `clap` might forbids this in the future even in
    the cases where a human can tell there is no ambiguity, but I'm hoping
    for the best.
    ilyagr committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    a115d67 View commit details
    Browse the repository at this point in the history