ok/jj
1
0
Fork 0
forked from mirrors/jj

cli: remove unneeded "pub" from "op undo" mode type and constant

Maybe we don't care, but let's make them private as all users and helper
functions are private.
This commit is contained in:
Yuya Nishihara 2024-06-22 10:15:54 +09:00
parent b72f2827d0
commit ebe97e3a9b

View file

@ -53,7 +53,7 @@ pub fn cmd_operation(
}
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, clap::ValueEnum)]
pub enum UndoWhatToRestore {
enum UndoWhatToRestore {
/// The jj repo state and local branches
Repo,
/// The remote-tracking branches. Do not restore these if you'd like to push
@ -61,7 +61,7 @@ pub enum UndoWhatToRestore {
RemoteTracking,
}
pub const DEFAULT_UNDO_WHAT: [UndoWhatToRestore; 2] =
const DEFAULT_UNDO_WHAT: [UndoWhatToRestore; 2] =
[UndoWhatToRestore::Repo, UndoWhatToRestore::RemoteTracking];
/// Restore only the portions of the view specified by the `what` argument