Martin von Zweigbergk
f3e35f1da4
description_utils: teach combine_messages()
to handle more than two sources
...
I plan to teach `jj squash --from` to accept a revset as input.
2024-03-13 05:21:05 -07:00
Martin von Zweigbergk
2b8988c620
description_util: make combine_messages() not handle abandoned commit
...
I'm going to teach the function to support combining more than two
descriptions.
2024-03-13 05:21:05 -07:00
Yuya Nishihara
4dfded2ab7
cli: move join_message_paragraphs() to description_util
2024-03-07 00:33:28 +09:00
Yuya Nishihara
97024e5be4
cli: extract CommandError and helper functions to new module
...
The cli_util module is big enough to slow down Emacs, so let's split it up.
This change is an easy one.
2024-03-03 01:11:46 +09:00
Daniel Ploch
4024fb4880
cli_util: improve API for editing text in a tempfile
...
Consolidates bulky tempfile code in sparse.rs and description_util.rs into cli_util.rs
2024-01-23 23:49:35 -08:00
Łukasz Kurowski
57d7aeab5e
cli: generate commit template after selecting changes
...
Renamed `description_template_for_commit` to
`description_template_for_describe` since it's only used in
`cmd_describe`.
Renamed `description_template_for_cmd_split` to
`description_template_for_commit` and modified to accomodate empty
`intro` argument.
Fixes #2439 .
2023-11-09 15:10:25 +01:00
Antoine Cezar
afc2382833
cli: move description utils to description_util.rs
2023-11-06 17:49:02 +01:00