pub enum PullLine {
Updating {
old: String,
new: String,
},
Result(PullResult),
Diffstat {
path: String,
count: String,
plus: usize,
minus: usize,
},
BinStat {
path: String,
rest: String,
},
Summary {
files: String,
ins: Option<String>,
del: Option<String>,
},
Mode {
verb: String,
mode: String,
rest: String,
},
Submodule {
path: String,
verb: String,
sha: String,
},
SubmoduleNoise,
Other,
}Expand description
One classified stdout line. Each variant holds enough to rebuild the line exactly.
Variants§
Updating
Updating <old>..<new>
Result(PullResult)
Diffstat
<path> | <count> <+++-->; path keeps git’s leading space and padding, count its padding.
BinStat
<path> | Bin <a> -> <b> bytes
Summary
N files changed, optional X insertions(+), optional Y deletions(-).
Mode
create mode 100644 x: verb (create mode, delete mode, rename, mode change), dim part, rest.
Submodule
Submodule path '<path>': <verb> '<sha>'
SubmoduleNoise
Clone’s Submodule '<name>' (<url>) registered for path '<path>'.
Other
Trait Implementations§
impl Eq for PullLine
impl StructuralPartialEq for PullLine
Auto Trait Implementations§
impl Freeze for PullLine
impl RefUnwindSafe for PullLine
impl Send for PullLine
impl Sync for PullLine
impl Unpin for PullLine
impl UnsafeUnpin for PullLine
impl UnwindSafe for PullLine
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