#[non_exhaustive]pub enum GitCommand {
Show 30 variants
Status,
Diff {
cached: bool,
},
Log {
maximum: u32,
},
Show {
object: Option<GitObjectName>,
},
Add {
paths: Vec<String>,
},
Commit {
message: String,
author: String,
authored_at_seconds: i64,
},
Branch {
create: Option<String>,
},
Switch {
branch: String,
create: bool,
},
Restore {
source: Option<GitObjectName>,
paths: Vec<String>,
},
Reset {
target: GitObjectName,
mode: GitResetMode,
},
Merge {
branch: String,
},
MergeContinue,
MergeAbort,
Rebase {
branch: String,
},
StashPush,
StashPop,
CherryPick {
object: GitObjectName,
},
Revert {
object: GitObjectName,
},
Tag {
name: Option<String>,
target: Option<GitObjectName>,
delete: bool,
},
Blame {
path: String,
},
Grep {
pattern: String,
path: Option<String>,
},
Clean {
dry_run: bool,
},
Archive {
object: Option<GitObjectName>,
},
Apply {
patch: Vec<u8>,
},
Bisect {
arguments: Vec<String>,
},
RevParse {
argument: String,
},
SymbolicRef {
short: bool,
},
MergeBase {
left: GitObjectName,
right: GitObjectName,
},
LsFiles,
CheckIgnore {
paths: Vec<String>,
},
}Expand description
Parsed Git-shaped command.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Status
Compare compatibility HEAD with the live workspace.
Diff
Diff HEAD-to-workspace; cached has identical semantics.
Log
Walk explicit compatibility history.
Show
Inspect one compatibility commit.
Fields
object: Option<GitObjectName>Object to show, defaulting to HEAD.
Add
Accepted no-op because changes are always staged.
Commit
Capture the complete eligible workspace state.
Branch
List or create a branch.
Switch
Select a branch, optionally creating it first.
Restore
Restore paths from an object.
Fields
source: Option<GitObjectName>Source object, defaulting to HEAD.
Reset
Move HEAD and optionally the workspace.
Merge
Join another compatibility branch.
MergeContinue
Continue the one durable conflicted merge after ordinary workspace edits.
MergeAbort
Restore the pre-merge working tree and clear the durable merge intent.
Rebase
Rebase onto another compatibility branch.
StashPush
Stash the complete working generation.
StashPop
Restore and remove the newest stash.
CherryPick
Apply one commit as a cherry-pick.
Fields
object: GitObjectNameCommit to apply.
Revert
Invert one explicit commit.
Fields
object: GitObjectNameCommit to invert.
Tag
List, create, or delete a lightweight tag.
Fields
target: Option<GitObjectName>Target object, defaulting to HEAD.
Blame
Attribute lines to compatibility commits.
Grep
Search one live or historical tree.
Fields
Clean
Remove untracked, non-ignored paths.
Archive
Export one compatibility tree.
Fields
object: Option<GitObjectName>Object to archive, defaulting to the workspace.
Apply
Apply a patch to the working workspace.
Bisect
Advance a caller-directed bisect session.
RevParse
Resolve one compatibility revision or a small read-only probe.
SymbolicRef
Print the symbolic compatibility HEAD.
MergeBase
Find the nearest common explicit compatibility commit.
LsFiles
List paths tracked by explicit compatibility history.
CheckIgnore
Test paths against the live compatibility ignore policy.
Trait Implementations§
Source§impl Clone for GitCommand
impl Clone for GitCommand
Source§impl Debug for GitCommand
impl Debug for GitCommand
Source§impl<'de> Deserialize<'de> for GitCommand
impl<'de> Deserialize<'de> for GitCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for GitCommand
Source§impl PartialEq for GitCommand
impl PartialEq for GitCommand
Source§impl Serialize for GitCommand
impl Serialize for GitCommand
impl StructuralPartialEq for GitCommand
Auto Trait Implementations§
impl Freeze for GitCommand
impl RefUnwindSafe for GitCommand
impl Send for GitCommand
impl Sync for GitCommand
impl Unpin for GitCommand
impl UnsafeUnpin for GitCommand
impl UnwindSafe for GitCommand
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request