Struct git_repository::worktree::fs::cache::state::Attributes
source · pub struct Attributes {
pub stack: MatchGroup<Attributes>,
pub globals: MatchGroup<Attributes>,
}
Expand description
State related to attributes associated with files in the repository.
Fields§
§stack: MatchGroup<Attributes>
Attribute patterns that match the currently set directory (in the stack).
globals: MatchGroup<Attributes>
Attribute patterns which aren’t tied to the repository root, hence are global. They are consulted last.
Implementations§
source§impl Attributes
impl Attributes
sourcepub fn new(globals: MatchGroup<Attributes>) -> Attributes
pub fn new(globals: MatchGroup<Attributes>) -> Attributes
Create a new instance from an attribute match group that represents globals
.
A stack of attributes will be applied on top of it later.
Trait Implementations§
source§impl Clone for Attributes
impl Clone for Attributes
source§fn clone(&self) -> Attributes
fn clone(&self) -> Attributes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for Attributes
impl Default for Attributes
source§fn default() -> Attributes
fn default() -> Attributes
Returns the “default value” for a type. Read more
source§impl From<MatchGroup<Attributes>> for Attributes
impl From<MatchGroup<Attributes>> for Attributes
source§fn from(group: MatchGroup<Attributes>) -> Attributes
fn from(group: MatchGroup<Attributes>) -> Attributes
Converts to this type from the input type.