pub struct CommitFiles {
pub repo: RepoTarget,
pub sha: String,
pub files: PreparedFiles,
pub current: PathBuf,
}Expand description
The commit a Diff surface’s file belongs to, with the commit’s full
changed-file list — the sidebar’s data (typed numstat rows, the same
ones the changed-files surface renders from; 0011 §4). repo is
the provenance the whole delta chain replays: ]f steps and dives
from this surface run against that repository — remote surfaces
never answer from the local cwd (0036 RW8).
Fields§
§repo: RepoTarget§sha: String§files: PreparedFiles§current: PathBufSelected file identity; display labels are not reversible native paths.
Trait Implementations§
Source§impl Clone for CommitFiles
impl Clone for CommitFiles
Source§fn clone(&self) -> CommitFiles
fn clone(&self) -> CommitFiles
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 moreAuto Trait Implementations§
impl Freeze for CommitFiles
impl RefUnwindSafe for CommitFiles
impl Send for CommitFiles
impl Sync for CommitFiles
impl Unpin for CommitFiles
impl UnsafeUnpin for CommitFiles
impl UnwindSafe for CommitFiles
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