forked from mirrors/jj
cli: remove unneeded &mut from edit_multiple_descriptions()
This commit is contained in:
parent
dd9213a954
commit
3c04507097
2 changed files with 2 additions and 2 deletions
|
@ -156,7 +156,7 @@ pub(crate) fn cmd_describe(
|
|||
missing,
|
||||
duplicates,
|
||||
unexpected,
|
||||
} = edit_multiple_descriptions(&mut tx, &temp_commits, command.settings())?;
|
||||
} = edit_multiple_descriptions(&tx, &temp_commits, command.settings())?;
|
||||
if !missing.is_empty() {
|
||||
return Err(user_error(format!(
|
||||
"The description for the following commits were not found in the edited \
|
||||
|
|
|
@ -57,7 +57,7 @@ JJ: Lines starting with "JJ: " (like this one) will be removed.
|
|||
|
||||
/// Edits the descriptions of the given commits in a single editor session.
|
||||
pub fn edit_multiple_descriptions(
|
||||
tx: &mut WorkspaceCommandTransaction,
|
||||
tx: &WorkspaceCommandTransaction,
|
||||
commits: &[(&CommitId, Commit)],
|
||||
settings: &UserSettings,
|
||||
) -> Result<ParsedBulkEditMessage<CommitId>, CommandError> {
|
||||
|
|
Loading…
Reference in a new issue