pub struct BranchFormatContext<'a> {
pub repo: &'a Repository,
pub refname_display: &'a str,
pub oid: ObjectId,
pub full_refname: Option<&'a str>,
pub emit_format_color: bool,
}Expand description
Context used when expanding a git branch --format template for one branch.
Fields§
§repo: &'a RepositoryRepository containing the branch.
refname_display: &'a strRef name as displayed by the branch listing code.
oid: ObjectIdObject id at the branch tip.
full_refname: Option<&'a str>Full ref name, when this entry has one.
emit_format_color: boolWhen false, %(color:...) atoms expand to empty (non-TTY auto).
Auto Trait Implementations§
impl<'a> Freeze for BranchFormatContext<'a>
impl<'a> RefUnwindSafe for BranchFormatContext<'a>
impl<'a> Send for BranchFormatContext<'a>
impl<'a> Sync for BranchFormatContext<'a>
impl<'a> Unpin for BranchFormatContext<'a>
impl<'a> UnsafeUnpin for BranchFormatContext<'a>
impl<'a> UnwindSafe for BranchFormatContext<'a>
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