mirror of
https://github.com/jj-vcs/jj.git
synced 2026-07-08 18:13:08 +08:00
The code in both cli/src/commands/{next,prev}.rs is identical except
for the direction of movement. This commit pull the parts that make
sense out into cli/src/movement_util.rs so it's easier to see the
differences.
Part of #3947
40 lines
1.1 KiB
Rust
40 lines
1.1 KiB
Rust
// Copyright 2020 The Jujutsu Authors
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// https://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
#![deny(unused_must_use)]
|
|
|
|
pub mod cleanup_guard;
|
|
pub mod cli_util;
|
|
pub mod command_error;
|
|
pub mod commands;
|
|
pub mod commit_templater;
|
|
pub mod config;
|
|
pub mod description_util;
|
|
pub mod diff_util;
|
|
pub mod formatter;
|
|
pub mod generic_templater;
|
|
pub mod git_util;
|
|
pub mod graphlog;
|
|
pub mod merge_tools;
|
|
pub mod movement_util;
|
|
pub mod operation_templater;
|
|
mod progress;
|
|
pub mod revset_util;
|
|
pub mod template_builder;
|
|
pub mod template_parser;
|
|
pub mod templater;
|
|
pub mod text_util;
|
|
pub mod time_util;
|
|
pub mod ui;
|