jj_cli/
lib.rs

1// Copyright 2020 The Jujutsu Authors
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#![deny(unused_must_use)]
16
17pub mod cleanup_guard;
18pub mod cli_util;
19pub mod command_error;
20pub mod commands;
21pub mod commit_ref_list;
22pub mod commit_templater;
23pub mod complete;
24pub mod config;
25pub mod description_util;
26pub mod diff_util;
27pub mod formatter;
28pub mod generic_templater;
29#[cfg(feature = "git")]
30pub mod git_util;
31#[cfg(not(feature = "git"))]
32/// A stub module that provides a no-op implementation of some of the functions
33/// in the `git` module.
34pub mod git_util {
35    use jj_lib::repo::ReadonlyRepo;
36    use jj_lib::workspace::Workspace;
37
38    pub fn is_colocated_git_workspace(_workspace: &Workspace, _repo: &ReadonlyRepo) -> bool {
39        false
40    }
41}
42pub mod graphlog;
43pub mod merge_tools;
44pub mod movement_util;
45pub mod operation_templater;
46mod progress;
47pub mod revset_util;
48pub mod template_builder;
49pub mod template_parser;
50pub mod templater;
51pub mod text_util;
52pub mod time_util;
53pub mod ui;