jj/cli/src
Ilya Grigoriev 684d62e8ae cli: rename --restore-descendants to --preserve-descendant-content AKA --pdc
Fixes https://github.com/jj-vcs/jj/discussions/5951

There have also been discussions on Discord on and off; people seem to
agree that `--preserve-descendant-content` is clear if verbose. I hope
that a short alias might address that (though I don't intent to make a
habit of having many cryptic short aliases), though we could also decide
to skip it for now and see whether it's really needed.

Some other options considered:

- `keep-descendant-content`. In theory, I like it better, but it'd be
  confusingly similar to `jj squash --keep-emptied` once `jj squash
  --keep-descendant-content` was implemented, and would also conflict
  with its tab completion.
- `--preserve-descendant-contents` with `s` at the end.
- The short version could be `-P`, but that would be confusable with
  `--preserve-content` for `jj rebase`, discussed below. Also, currently
  single-capital-letter flags are usually about lifting some
  restriction, e.g. `-B` for `--allow-backwards`.
- `verbatim-descendants`
- `reparent-descendants`

The last two look a bit cryptic, depending on the person.

Note that `jj rebase` will also need a `--preserve-content` flag for
preserving the content of the commit actually being rebased. I'm not
sure whether that should also be `--pc` or not.
2025-03-23 18:50:43 -07:00
..
commands cli: rename --restore-descendants to --preserve-descendant-content AKA --pdc 2025-03-23 18:50:43 -07:00
config templates: create builtin_draft_commit_description template 2025-03-22 02:06:10 +00:00
merge_tools conflicts: pack MaterializedTreeValue::File fields, use read_all() helper 2025-03-23 01:31:15 +00:00
cleanup_guard.rs formatting only: switch to Item level import ganularity 2024-08-22 14:52:54 -04:00
cli_util.rs cli: rename --restore-descendants to --preserve-descendant-content AKA --pdc 2025-03-23 18:50:43 -07:00
command_error.rs jj fix: Refactor jj fix CLI, move some logic to lib to make it usable in other tools (e.g. in servers). 2025-03-16 17:59:22 +00:00
commit_templater.rs templater: rename RefName type to CommitRef 2025-03-14 14:58:29 +00:00
complete.rs cleanup: enable unused_trait_names clippy lint and run clippy --fix 2025-03-16 00:35:56 +00:00
config-schema.json signing: add gpgsm backend 2025-03-20 17:01:39 +00:00
config.rs config: relax bare string rule to accept middle apostrophes, etc. 2025-03-22 09:00:44 +00:00
description_util.rs cleanup: enable unused_trait_names clippy lint and run clippy --fix 2025-03-16 00:35:56 +00:00
diff_util.rs conflicts: pack MaterializedTreeValue::File fields, use read_all() helper 2025-03-23 01:31:15 +00:00
formatter.rs cleanup: enable unused_trait_names clippy lint and run clippy --fix 2025-03-16 00:35:56 +00:00
generic_templater.rs templater: add config(name) function 2025-01-11 01:40:23 +00:00
git_util.rs git: in import_refs(), split known remote bookmarks/tags maps 2025-03-23 01:32:29 +00:00
graphlog.rs cli: remove GraphLog::Edge type 2025-01-12 01:51:25 +00:00
lib.rs cli: make git support optional 2025-01-08 22:02:21 +00:00
main.rs cli: move src/ directory to new cli/ directory 2023-08-04 19:00:42 -05:00
movement_util.rs cleanup: enable unused_trait_names clippy lint and run clippy --fix 2025-03-16 00:35:56 +00:00
operation_templater.rs cleanup: enable unused_trait_names clippy lint and run clippy --fix 2025-03-16 00:35:56 +00:00
progress.rs cleanup: remove unneeded lifetime capturing from snapshot_progress() 2025-03-08 01:16:56 +00:00
revset_util.rs cleanup: switch to use<'_> capturing syntax 2025-03-08 01:16:56 +00:00
template.pest templater: rename "logical" eq/ne operators 2024-12-12 22:48:45 +09:00
template_builder.rs cleanup: switch to use<'_> capturing syntax 2025-03-08 01:16:56 +00:00
template_parser.rs cleanup: enable unused_trait_names clippy lint and run clippy --fix 2025-03-16 00:35:56 +00:00
templater.rs cleanup: switch to use<'_> capturing syntax 2025-03-08 01:16:56 +00:00
text_util.rs tests: run insta --force-update-snapshots 2025-03-06 21:35:08 +00:00
time_util.rs cleanup: enable unused_trait_names clippy lint and run clippy --fix 2025-03-16 00:35:56 +00:00
ui.rs ui: do not pass empty choice input to parse function 2025-03-18 15:43:43 +00:00