mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-31 16:33:10 +00:00
cleanup: fix minor typos in function names
> error: `mutliple` should be `multiple` > error: `visble` should be `visible` Found via typos: - https://github.com/crate-ci/typos
This commit is contained in:
parent
d087e64abf
commit
d10af403a5
3 changed files with 6 additions and 6 deletions
|
@ -1986,7 +1986,7 @@ impl VisibilityResolutionContext<'_> {
|
||||||
// but if it does, the heads set could be extended to include the commits
|
// but if it does, the heads set could be extended to include the commits
|
||||||
// (and `remote_branches()`) specified in the revset expression. Alternatively,
|
// (and `remote_branches()`) specified in the revset expression. Alternatively,
|
||||||
// some optimization rules could be removed, but that means `author(_) & x`
|
// some optimization rules could be removed, but that means `author(_) & x`
|
||||||
// would have to test `:visble_heads() & x`.
|
// would have to test `:visible_heads() & x`.
|
||||||
ResolvedExpression::Ancestors {
|
ResolvedExpression::Ancestors {
|
||||||
heads: self.resolve_visible_heads().into(),
|
heads: self.resolve_visible_heads().into(),
|
||||||
generation: GENERATION_RANGE_FULL,
|
generation: GENERATION_RANGE_FULL,
|
||||||
|
|
|
@ -1664,7 +1664,7 @@ pub fn resolve_multiple_nonempty_revsets(
|
||||||
Ok(acc)
|
Ok(acc)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn resolve_mutliple_nonempty_revsets_flag_guarded(
|
pub fn resolve_multiple_nonempty_revsets_flag_guarded(
|
||||||
workspace_command: &WorkspaceCommandHelper,
|
workspace_command: &WorkspaceCommandHelper,
|
||||||
revisions: &[RevisionArg],
|
revisions: &[RevisionArg],
|
||||||
allow_plural_revsets: bool,
|
allow_plural_revsets: bool,
|
||||||
|
|
|
@ -52,7 +52,7 @@ use maplit::{hashmap, hashset};
|
||||||
|
|
||||||
use crate::cli_util::{
|
use crate::cli_util::{
|
||||||
check_stale_working_copy, get_config_file_path, print_checkout_stats,
|
check_stale_working_copy, get_config_file_path, print_checkout_stats,
|
||||||
resolve_multiple_nonempty_revsets, resolve_mutliple_nonempty_revsets_flag_guarded,
|
resolve_multiple_nonempty_revsets, resolve_multiple_nonempty_revsets_flag_guarded,
|
||||||
run_ui_editor, serialize_config_value, short_commit_hash, user_error, user_error_with_hint,
|
run_ui_editor, serialize_config_value, short_commit_hash, user_error, user_error_with_hint,
|
||||||
write_config_value_to_file, Args, CommandError, CommandHelper, DescriptionArg,
|
write_config_value_to_file, Args, CommandError, CommandHelper, DescriptionArg,
|
||||||
LogContentFormat, RevisionArg, WorkspaceCommandHelper,
|
LogContentFormat, RevisionArg, WorkspaceCommandHelper,
|
||||||
|
@ -2051,7 +2051,7 @@ fn resolve_destination_revs(
|
||||||
revisions: &[RevisionArg],
|
revisions: &[RevisionArg],
|
||||||
allow_plural_revsets: bool,
|
allow_plural_revsets: bool,
|
||||||
) -> Result<IndexSet<Commit>, CommandError> {
|
) -> Result<IndexSet<Commit>, CommandError> {
|
||||||
let commits = resolve_mutliple_nonempty_revsets_flag_guarded(
|
let commits = resolve_multiple_nonempty_revsets_flag_guarded(
|
||||||
workspace_command,
|
workspace_command,
|
||||||
revisions,
|
revisions,
|
||||||
allow_plural_revsets,
|
allow_plural_revsets,
|
||||||
|
@ -2889,7 +2889,7 @@ fn cmd_rebase(ui: &mut Ui, command: &CommandHelper, args: &RebaseArgs) -> Result
|
||||||
if let Some(rev_str) = &args.revision {
|
if let Some(rev_str) = &args.revision {
|
||||||
rebase_revision(ui, command, &mut workspace_command, &new_parents, rev_str)?;
|
rebase_revision(ui, command, &mut workspace_command, &new_parents, rev_str)?;
|
||||||
} else if !args.source.is_empty() {
|
} else if !args.source.is_empty() {
|
||||||
let source_commits = resolve_mutliple_nonempty_revsets_flag_guarded(
|
let source_commits = resolve_multiple_nonempty_revsets_flag_guarded(
|
||||||
&workspace_command,
|
&workspace_command,
|
||||||
&args.source,
|
&args.source,
|
||||||
args.allow_large_revsets,
|
args.allow_large_revsets,
|
||||||
|
@ -2905,7 +2905,7 @@ fn cmd_rebase(ui: &mut Ui, command: &CommandHelper, args: &RebaseArgs) -> Result
|
||||||
let branch_commits = if args.branch.is_empty() {
|
let branch_commits = if args.branch.is_empty() {
|
||||||
IndexSet::from([workspace_command.resolve_single_rev("@")?])
|
IndexSet::from([workspace_command.resolve_single_rev("@")?])
|
||||||
} else {
|
} else {
|
||||||
resolve_mutliple_nonempty_revsets_flag_guarded(
|
resolve_multiple_nonempty_revsets_flag_guarded(
|
||||||
&workspace_command,
|
&workspace_command,
|
||||||
&args.branch,
|
&args.branch,
|
||||||
args.allow_large_revsets,
|
args.allow_large_revsets,
|
||||||
|
|
Loading…
Reference in a new issue