pub struct DiffFile<'a> { /* fields omitted */ }
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).
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.
Returns the path, in bytes, of the entry relative to the working
directory of the repository.
Returns the path of the entry relative to the working directory of the
repository.
Returns the size of this entry, in bytes
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static