blob: 6cb274e7dc7434c21973f484c2e00b4f325c898f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
use crate::{
config,
config::tree::{keys, Clone, Key, Section},
};
impl Clone {
/// The `clone.defaultRemoteName` key.
pub const DEFAULT_REMOTE_NAME: keys::RemoteName =
keys::RemoteName::new_remote_name("defaultRemoteName", &config::Tree::CLONE);
/// The `clone.rejectShallow` key.
pub const REJECT_SHALLOW: keys::Boolean = keys::Boolean::new_boolean("rejectShallow", &config::Tree::CLONE);
}
impl Section for Clone {
fn name(&self) -> &str {
"clone"
}
fn keys(&self) -> &[&dyn Key] {
&[&Self::DEFAULT_REMOTE_NAME, &Self::REJECT_SHALLOW]
}
}
|