pub struct LogCommand {Show 14 fields
pub executor: CommandExecutor,
pub max_count: Option<u32>,
pub skip: Option<u32>,
pub oneline: bool,
pub graph: bool,
pub all: bool,
pub reverse: bool,
pub format: Option<String>,
pub since: Option<String>,
pub until: Option<String>,
pub author: Option<String>,
pub grep: Option<String>,
pub revisions: Vec<String>,
pub paths: Vec<String>,
}Expand description
Builder for git log.
Fields§
§executor: CommandExecutorShared executor.
max_count: Option<u32>-n.
skip: Option<u32>--skip.
oneline: bool--oneline.
graph: bool--graph.
all: bool--all.
reverse: bool--reverse.
format: Option<String>--format / --pretty=format:.
since: Option<String>--since.
until: Option<String>--until.
--author.
grep: Option<String>--grep.
revisions: Vec<String>Revision range (e.g. HEAD~5..HEAD) or refs.
paths: Vec<String>Pathspec filters.
Implementations§
Source§impl LogCommand
impl LogCommand
Filter by author.
Trait Implementations§
Source§impl Clone for LogCommand
impl Clone for LogCommand
Source§fn clone(&self) -> LogCommand
fn clone(&self) -> LogCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LogCommand
impl Debug for LogCommand
Source§impl Default for LogCommand
impl Default for LogCommand
Source§fn default() -> LogCommand
fn default() -> LogCommand
Returns the “default value” for a type. Read more
Source§impl GitCommand for LogCommand
impl GitCommand for LogCommand
Source§type Output = CommandOutput
type Output = CommandOutput
The typed output produced by this command.
Source§fn get_executor(&self) -> &CommandExecutor
fn get_executor(&self) -> &CommandExecutor
Borrow the shared executor.
Source§fn get_executor_mut(&mut self) -> &mut CommandExecutor
fn get_executor_mut(&mut self) -> &mut CommandExecutor
Mutably borrow the shared executor.
Source§fn build_command_args(&self) -> Vec<String>
fn build_command_args(&self) -> Vec<String>
Build the full argument vector (subcommand + flags + positionals)
excluding the leading
git program.Source§fn execute<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CommandOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CommandOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Run the command and decode its output into
Self::Output.Source§fn execute_raw<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CommandOutput>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn execute_raw<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CommandOutput>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Spawn
git with the given arguments and return the raw output. Read moreSource§fn current_dir<P: Into<PathBuf>>(&mut self, dir: P) -> &mut Self
fn current_dir<P: Into<PathBuf>>(&mut self, dir: P) -> &mut Self
Run
git in the given working directory.Source§fn env<K: Into<OsString>, V: Into<OsString>>(
&mut self,
key: K,
value: V,
) -> &mut Self
fn env<K: Into<OsString>, V: Into<OsString>>( &mut self, key: K, value: V, ) -> &mut Self
Set an environment variable for this invocation.
Source§fn with_timeout(&mut self, timeout: Duration) -> &mut Self
fn with_timeout(&mut self, timeout: Duration) -> &mut Self
Cap execution time. On expiry the process is killed and
Error::Timeout is returned.Source§fn with_timeout_secs(&mut self, seconds: u64) -> &mut Self
fn with_timeout_secs(&mut self, seconds: u64) -> &mut Self
Convenience: set timeout in whole seconds.
Auto Trait Implementations§
impl Freeze for LogCommand
impl RefUnwindSafe for LogCommand
impl Send for LogCommand
impl Sync for LogCommand
impl Unpin for LogCommand
impl UnsafeUnpin for LogCommand
impl UnwindSafe for LogCommand
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