Struct git_global::Report
source · pub struct Report { /* private fields */ }
Expand description
A report containing the results of a git-global subcommand.
Contains overall messages and per-repo messages.
Implementations§
source§impl Report
impl Report
sourcepub fn pad_repo_output(&mut self)
pub fn pad_repo_output(&mut self)
Declares the desire to separate output when showing per-repo messages.
Sets flag that indicates a blank line should be inserted between messages for different repos when printing per-repo output.
sourcepub fn add_message(&mut self, message: String)
pub fn add_message(&mut self, message: String)
Adds a message that applies to the overall operation.
sourcepub fn add_repo_message(&mut self, repo: &Repo, data_line: String)
pub fn add_repo_message(&mut self, repo: &Repo, data_line: String)
Adds a message that applies to the given repo.
sourcepub fn print<W: Write>(&self, writer: &mut W)
pub fn print<W: Write>(&self, writer: &mut W)
Writes all result messages to the given writer, as text.
sourcepub fn print_json<W: Write>(&self, writer: &mut W)
pub fn print_json<W: Write>(&self, writer: &mut W)
Writes all result messages to the given writer, as JSON.
Auto Trait Implementations§
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnwindSafe for Report
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