Commit 9dd95ff
committed
cli:converge: new jj converge command
`jj converge` allows users to "fix" divergence. The command tries to
create a new commit for the divergent change that rewrites all divergent
commits. The command tries to do this automatically, but falls back to
prompting the user for pieces of information as needed.
The command uses the lib/converge.rs library to do most of the work.
The command takes an optional --search_space revset (it looks for
divergent commits matching that revset). If not specified the command
uses a new `revsets.converge` system revset (mutable() & divergent()).
If the command cannot automatically merge the descriptions, the user's
text editor is invoked to let the user merge the divergent descriptions
manually (as if they were conflicts on a "description" file).
The command has a --interactive=true/false flag to allow users to invoke
it without prompting the user.1 parent 7e7ca71 commit 9dd95ff
9 files changed
Lines changed: 2342 additions & 2 deletions
File tree
- cli
- src
- commands
- config
- tests
- docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
427 | 428 | | |
428 | 429 | | |
429 | 430 | | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
430 | 444 | | |
431 | 445 | | |
432 | 446 | | |
| |||
507 | 521 | | |
508 | 522 | | |
509 | 523 | | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
510 | 530 | | |
511 | 531 | | |
512 | 532 | | |
| |||
936 | 956 | | |
937 | 957 | | |
938 | 958 | | |
939 | | - | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
940 | 962 | | |
941 | 963 | | |
942 | 964 | | |
| |||
0 commit comments