Enum gix_worktree::status::Change
source · pub enum Change<T = ()> {
Removed,
Type,
Modification {
executable_bit_changed: bool,
content_change: Option<T>,
},
IntentToAdd,
}Expand description
How an index entry needs to be changed to obtain the destination worktree state, i.e. entry.apply(this_change) == worktree-entry.
Variants§
Removed
This corresponding file does not exist in the worktree anymore.
Type
The type of file changed compared to the worktree, i.e. a symlink s now a file.
Modification
Fields
executable_bit_changed: boolIndicates that one of the stat changes was an executable bit change which is a significant change itself.
content_change: Option<T>The output of the CompareBlobs run on this entry.
If there is no content change and only the executable bit
changed than this is None.
This worktree file was modified in some form, like a permission change or content change or both, as compared to this entry.
IntentToAdd
An index entry that correspond to an untracked worktree file marked with git add --intent-to-add.
This means it’s not available in the object database yet or the index was created from, even though now an entry exists that represents the worktree file.
Trait Implementations§
source§impl<T: Ord> Ord for Change<T>
impl<T: Ord> Ord for Change<T>
source§impl<T: PartialEq> PartialEq<Change<T>> for Change<T>
impl<T: PartialEq> PartialEq<Change<T>> for Change<T>
source§impl<T: PartialOrd> PartialOrd<Change<T>> for Change<T>
impl<T: PartialOrd> PartialOrd<Change<T>> for Change<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more