Skip to content

Commit

Permalink
Key trait docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
bittrance committed Jan 30, 2024
1 parent 04d0be3 commit f1d7e94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gix-config/src/traits.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use bstr::BStr;

/// TODO
/// Parsed elements of a Git config key, like `remote.origin.url` or `core.bare`.
pub trait Key {
/// TODO
/// The name of the section key, like `url` in `remote.origin.url`.
fn name(&self) -> &str;
/// TODO
/// The name of the section, like `core` in `core.bare`.
fn section_name(&self) -> &str;
/// TODO
/// The name of the sub-section, like `origin` in `remote.origin.url`.
fn subsection_name(&self) -> Option<&BStr>;
}

0 comments on commit f1d7e94

Please sign in to comment.