e45130d31b
The new `--new` or `-n` flag allows to create a new revision after the single revision being described. Running `jj-cz --new` is the equivalent of running `jj-cz @ && jj new`. Running `jj-cz --new xs` is the equivalent of running `jj-cz xs && jj new xs`. Passing several revisions to `jj-cz` with the `--new` flag will result in an error. Refs: #6
21 lines
606 B
Rust
21 lines
606 B
Rust
mod commit;
|
|
pub mod error;
|
|
mod jj;
|
|
mod prompts;
|
|
|
|
pub use crate::{
|
|
commit::types::{
|
|
Body, BreakingChange, CommitMessageError, CommitType, ConventionalCommit, Description,
|
|
DescriptionError, Scope, ScopeError,
|
|
},
|
|
error::Error,
|
|
jj::{JjExecutor, lib_executor::JjLib},
|
|
prompts::{CommitWorkflow, Prompter},
|
|
};
|
|
|
|
/// Test utilities: mock implementations for `JjExecutor` and `MockPrompts`.
|
|
///
|
|
/// Enable with `--features test-utils` (e.g. `cargo test --features test-utils`).
|
|
#[cfg(feature = "test-utils")]
|
|
pub use crate::{jj::mock::MockJjExecutor, prompts::mock::MockPrompts};
|