forked from mirrors/jj
squash: accept -k as a shorthand for --keep-emptied
This eases the workflow in which a commit in the middle of the tree is repeatedly squashed into its parent.
This commit is contained in:
parent
7ff12ec8b0
commit
a7f32d3652
3 changed files with 4 additions and 2 deletions
|
@ -58,6 +58,8 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|||
|
||||
* `jj op undo` now reports information on the operation that has been undone.
|
||||
|
||||
* `jj squash`: the `-k` flag can be used as a shorthand for `--keep-emptied`.
|
||||
|
||||
### Fixed bugs
|
||||
|
||||
* Fixed panic when parsing invalid conflict markers of a particular form.
|
||||
|
|
|
@ -82,7 +82,7 @@ pub(crate) struct SquashArgs {
|
|||
#[arg(conflicts_with_all = ["interactive", "tool"], value_hint = clap::ValueHint::AnyPath)]
|
||||
paths: Vec<String>,
|
||||
/// The source revision will not be abandoned
|
||||
#[arg(long)]
|
||||
#[arg(long, short)]
|
||||
keep_emptied: bool,
|
||||
}
|
||||
|
||||
|
|
|
@ -1925,7 +1925,7 @@ If a working-copy commit gets abandoned, it will be given a new, empty commit. T
|
|||
* `-u`, `--use-destination-message` — Use the description of the destination revision and discard the description(s) of the source revision(s)
|
||||
* `-i`, `--interactive` — Interactively choose which parts to squash
|
||||
* `--tool <NAME>` — Specify diff editor to be used (implies --interactive)
|
||||
* `--keep-emptied` — The source revision will not be abandoned
|
||||
* `-k`, `--keep-emptied` — The source revision will not be abandoned
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue