pub enum GitCommitRecord<'a> {
Commit {Show 13 fields
flags: u8,
oid: GitOid,
tree: GitOid,
parents: Vec<GitOid>,
author_time: i64,
author_tz: i16,
committer_time: i64,
committer_tz: i16,
author_name: &'a str,
author_email: &'a str,
committer_name: &'a str,
committer_email: &'a str,
message: &'a str,
},
PathAt {
otype: u8,
mode: u32,
oid: GitOid,
path: &'a str,
},
}Expand description
One decoded record from a GIT_COMMITS payload.
Variants§
Commit
COMMIT 0x01: [kind:1][flags:1][oid:32][tree:32][n_parents:1][parents:32·N] [author_time:8 i64 s][author_tz:2 i16 min][committer_time:8][committer_tz:2] [author_name_len:2][author_name:N][author_email_len:2][email:N] [committer_name_len:2][…][committer_email_len:2][…][msg_len:4][message:N]
Fields
PathAt
PATH_AT 0x02: [kind:1][otype:1][mode:4][oid:32][path_len:2][path:N]
With PATH_OIDS: the object at the followed path as of the preceding
COMMIT record; zero oid when that commit deletes it.
Trait Implementations§
Source§impl<'a> Clone for GitCommitRecord<'a>
impl<'a> Clone for GitCommitRecord<'a>
Source§fn clone(&self) -> GitCommitRecord<'a>
fn clone(&self) -> GitCommitRecord<'a>
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<'a> Debug for GitCommitRecord<'a>
impl<'a> Debug for GitCommitRecord<'a>
impl<'a> Eq for GitCommitRecord<'a>
Source§impl<'a> PartialEq for GitCommitRecord<'a>
impl<'a> PartialEq for GitCommitRecord<'a>
impl<'a> StructuralPartialEq for GitCommitRecord<'a>
Auto Trait Implementations§
impl<'a> Freeze for GitCommitRecord<'a>
impl<'a> RefUnwindSafe for GitCommitRecord<'a>
impl<'a> Send for GitCommitRecord<'a>
impl<'a> Sync for GitCommitRecord<'a>
impl<'a> Unpin for GitCommitRecord<'a>
impl<'a> UnsafeUnpin for GitCommitRecord<'a>
impl<'a> UnwindSafe for GitCommitRecord<'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