Struct git2::Blob
[−]
[src]
pub struct Blob<'repo> { // some fields omitted }
A structure to represent a git blob
Methods
impl<'repo> Blob<'repo>
fn id(&self) -> Oid
Get the id (SHA1) of a repository blob
fn is_binary(&self) -> bool
Determine if the blob content is most certainly binary or not.
fn content(&self) -> &[u8]
Get the content of this blob.
fn as_object(&self) -> &Object<'repo>
Casts this Blob to be usable as an Object