-
-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config section for mailmap.{blob,file}.
These keys are not used at the moment, but will be introduced as part of the work performed under #1125.
- Loading branch information
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use crate::config::{ | ||
tree::{keys, Key, Mailmap, Section}, | ||
Tree, | ||
}; | ||
|
||
impl Mailmap { | ||
/// The `mailmap.blob` key | ||
pub const BLOB: keys::Any = keys::Any::new("blob", &Tree::MAILMAP); | ||
/// The `mailmap.file` key | ||
pub const FILE: keys::Any = keys::Any::new("file", &Tree::MAILMAP); | ||
} | ||
|
||
impl Section for Mailmap { | ||
fn name(&self) -> &str { | ||
"mailmap" | ||
} | ||
|
||
fn keys(&self) -> &[&dyn Key] { | ||
&[&Self::BLOB, &Self::FILE] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters