pub struct RefExclusions {
pub hidden_configured: bool,
/* private fields */
}Expand description
Patterns that exclude refs from --all / glob expansion, including hidden-ref config.
Fields§
Set after --exclude-hidden= is parsed; cleared by RefExclusions::clear.
Used to reject a second --exclude-hidden before the next pseudo-ref clears state.
Implementations§
Source§impl RefExclusions
impl RefExclusions
Sourcepub fn clear(&mut self)
pub fn clear(&mut self)
Reset exclusions after --all / --glob / --branches / … (matches Git clear_ref_exclusions).
Sourcepub fn add_excluded_ref(&mut self, pattern: impl Into<String>)
pub fn add_excluded_ref(&mut self, pattern: impl Into<String>)
Append a --exclude=<pattern> entry (Git wildmatch on the ref name).
Load transfer.hideRefs and <section>.hideRefs into this set.
section must be one of fetch, receive, or uploadpack.
Sourcepub fn ref_excluded(&self, stripped_name: Option<&str>, full_name: &str) -> bool
pub fn ref_excluded(&self, stripped_name: Option<&str>, full_name: &str) -> bool
Whether this ref should be omitted from ref listing (exclude + hidden rules).
stripped_name— ref name withGIT_NAMESPACEprefix removed, when applicable.full_name— storage path of the ref (e.g.refs/heads/main).
Trait Implementations§
Source§impl Clone for RefExclusions
impl Clone for RefExclusions
Source§fn clone(&self) -> RefExclusions
fn clone(&self) -> RefExclusions
Returns a duplicate 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 Debug for RefExclusions
impl Debug for RefExclusions
Source§impl Default for RefExclusions
impl Default for RefExclusions
Source§fn default() -> RefExclusions
fn default() -> RefExclusions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RefExclusions
impl RefUnwindSafe for RefExclusions
impl Send for RefExclusions
impl Sync for RefExclusions
impl Unpin for RefExclusions
impl UnsafeUnpin for RefExclusions
impl UnwindSafe for RefExclusions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more