Skip to content

Commit

Permalink
cmd squash: alias --to for the --into flag
Browse files Browse the repository at this point in the history
I keep typing `--to` since I'm used to `jj move` interface. It is
also shorter.
  • Loading branch information
ilyagr committed Apr 2, 2024
1 parent bbe906b commit 45830bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/commands/squash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub(crate) struct SquashArgs {
#[arg(long, conflicts_with = "revision")]
from: Option<RevisionArg>,
/// Revision to squash into (default: @)
#[arg(long, conflicts_with = "revision")]
#[arg(long, conflicts_with = "revision", visible_alias = "to")]
into: Option<RevisionArg>,
/// The description to use for squashed revision (don't open editor)
#[arg(long = "message", short, value_name = "MESSAGE")]
Expand Down

0 comments on commit 45830bd

Please sign in to comment.