jj/cli/src/commands
Essien Ita Essien bb018a54c3 next/prev: Add config flag to control prev/next edit behaviour.
* We started with a tristate flag where:
    - Auto - Maintain current behaviour. This edits if
      the wc parent is not a head commit. Else, it will
      create a new commit on the parent of the wc in
      the direction of movement.
    - Always - Always edit
    - Never - Never edit, prefer the new+squash workflow.
  However, consensus the review thread is that `auto` mode where we try to infer when to
  switch to `edit mode`, should be removed. So `ui.movement.edit` is a boolean flag now.
    - true: edit mode
    - false: new+squash mode
* Also add a `--no-edit` flag as the explicit inverse of `--edit` and
  ensure both flags take precedence over the config.
* Update tests that assumed edit mode inference, to specify `--edit` explicitly.

NOTE: #4302 was squashed into this commit, so see that closed PR for review history.

Part of #3947
2024-08-20 15:46:00 +01:00
..
branch branch: ignore git tracking branches for rename warning 2024-07-18 17:27:19 -05:00
config Warn user about the working copy when configuring the author 2024-08-19 17:09:30 +02:00
debug copy-tracking: create CopyRecordMap and add it to diff summaries 2024-08-11 17:01:45 -04:00
file cli chore: standardize subcommand function and argument type names 2024-06-28 13:38:04 -07:00
git config: do not parse TOML value expression by write_config_value_to_file() 2024-08-09 22:39:16 +09:00
operation copy-tracking: create CopyRecordMap and add it to diff summaries 2024-08-11 17:01:45 -04:00
workspace cli: move cmd_workspace_update_stale() entry point next to Args struct 2024-07-31 10:21:34 +09:00
abandon.rs Make check_rewritable take an iterator of &CommitId instead of &Commit 2024-04-04 09:31:17 -04:00
backout.rs backout: accept multiple revisions to back out 2024-07-07 17:58:10 +08:00
bench.rs revset: add a SymbolResolverExtension trait to provide custom resolvers 2024-04-26 10:55:34 -04:00
checkout.rs jj help: note that move, checkout, and merge as deprecated 2024-06-01 18:38:23 -07:00
commit.rs cli: port description template to templater 2024-07-25 22:39:00 +09:00
describe.rs describe: allow updating the description of multiple commits 2024-08-05 02:06:40 +08:00
diff.rs copies: move CopyRecords to new copies module 2024-08-18 22:16:41 -07:00
diffedit.rs cli: skip formatting instructions if not required 2024-07-09 20:24:14 -05:00
duplicate.rs ui: make status() return a dyn Write, add status_formatter() 2024-04-01 13:00:27 -07:00
edit.rs Make check_rewritable take an iterator of &CommitId instead of &Commit 2024-04-04 09:31:17 -04:00
fix.rs merged_tree: remove TreeDiffEntry::source 2024-08-18 22:16:41 -07:00
init.rs cli: do not attempt to merge op heads if --at-op=@ is specified 2024-08-03 09:22:26 +09:00
interdiff.rs copy-tracking: create CopyRecordMap and add it to diff summaries 2024-08-11 17:01:45 -04:00
log.rs diff: specify available terminal width by caller, subtract graph width 2024-08-01 02:03:03 +09:00
merge.rs cli: add convenient methods to print hint or warning with default headings 2024-03-26 00:28:27 +09:00
mod.rs cli chore: standardize subcommand function and argument type names 2024-06-28 13:38:04 -07:00
move.rs feat(squash): Add --keep-emptied flag 2024-07-03 12:03:26 +10:00
new.rs cli: remove deprecated --allow-large-revsets flag at all 2024-07-03 23:06:26 +09:00
next.rs next/prev: Add config flag to control prev/next edit behaviour. 2024-08-20 15:46:00 +01:00
obslog.rs copy-tracking: create CopyRecordMap and add it to diff summaries 2024-08-11 17:01:45 -04:00
parallelize.rs parallelize: drop redundant "Nothing changed." case 2024-04-18 21:06:52 -07:00
prev.rs next/prev: Add config flag to control prev/next edit behaviour. 2024-08-20 15:46:00 +01:00
rebase.rs rewrite: migrate move_commits function from rebase command 2024-08-12 21:48:17 +08:00
resolve.rs cli: inline matcher_from_values() in favor of parse_file_patterns() 2024-04-07 19:43:29 +09:00
restore.rs commit: add a helper for returning parent tree of Commit 2024-05-07 19:35:03 -07:00
root.rs cli: duplicate cmd_workspace_root() to cmd_root() 2024-07-31 10:21:34 +09:00
run.rs jj run: describe it as a stub in the help text 2024-08-06 17:51:01 -07:00
show.rs diff: specify available terminal width by caller, subtract graph width 2024-08-01 02:03:03 +09:00
sparse.rs cli: sort config/sparse subcommands in lexicographical order 2024-06-21 09:43:14 +09:00
split.rs cli: port description template to templater 2024-07-25 22:39:00 +09:00
squash.rs cli: skip formatting instructions if not required 2024-07-09 20:24:14 -05:00
status.rs copy-tracking: create CopyRecordMap and add it to diff summaries 2024-08-11 17:01:45 -04:00
tag.rs cli: rename "sub_args" variables to "args" 2024-06-21 09:43:14 +09:00
unsquash.rs cli: skip formatting instructions if not required 2024-07-09 20:24:14 -05:00
untrack.rs feat: add an option to monitor the filesystem asynchronously 2024-06-16 23:24:22 -04:00
util.rs cli: do not attempt to merge op heads if --at-op=@ is specified 2024-08-03 09:22:26 +09:00
version.rs