Struct git2::DiffFile [−][src]
pub struct DiffFile<'a> { /* fields omitted */ }
Expand description
Description of one side of a delta.
Although this is called a “file” it could represent a file, a symbolic link, a submodule commit id, or even a tree (although that only happens if you are tracking type changes or ignored/untracked directories).
Implementations
impl<'a> DiffFile<'a>
[src]
impl<'a> DiffFile<'a>
[src]pub fn id(&self) -> Oid
[src]
pub fn id(&self) -> Oid
[src]Returns the Oid of this item.
If this entry represents an absent side of a diff (e.g. the old_file
of a Added
delta), then the oid returned will be zeroes.
pub fn path_bytes(&self) -> Option<&'a [u8]>
[src]
pub fn path_bytes(&self) -> Option<&'a [u8]>
[src]Returns the path, in bytes, of the entry relative to the working directory of the repository.
pub fn path(&self) -> Option<&'a Path>
[src]
pub fn path(&self) -> Option<&'a Path>
[src]Returns the path of the entry relative to the working directory of the repository.
pub fn is_not_binary(&self) -> bool
[src]
pub fn is_not_binary(&self) -> bool
[src]Returns true
if file(s) are treated as text data.
pub fn is_valid_id(&self) -> bool
[src]
pub fn is_valid_id(&self) -> bool
[src]Returns true
if id
value is known correct.