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:
parent
b72f2827d0
commit
ebe97e3a9b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue