Skip to main content

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
42    pub fn get_remote_web_url(_repo: &ReadonlyRepo, _remote_name: &str) -> Option<String> {
43        None
44    }
45}
46pub mod graphlog;
47pub mod merge_tools;
48pub mod movement_util;
49pub mod operation_templater;
50mod progress;
51pub mod revset_util;
52pub mod template_builder;
53pub mod template_parser;
54pub mod templater;
55pub mod text_util;
56pub mod time_util;
57pub mod ui;