Enum git_odb::data::output::count::objects::ObjectExpansion [−][src]
pub enum ObjectExpansion {
AsIs,
TreeContents,
TreeAdditionsComparedToAncestor,
}Expand description
The way input objects are handled
Variants
Don’t do anything with the input objects except for transforming them into pack entries
If the input object is a Commit then turn it into a pack entry. Additionally obtain its tree, turn it into a pack entry
along with all of its contents, that is nested trees, and any other objects reachable from it.
Otherwise, the same as AsIs.
This mode is useful if all reachable objects should be added, as in cloning a repository.
If the input is a commit, obtain its ancestors and turn them into pack entries. Obtain the ancestor trees along with the commits
tree and turn them into pack entries. Finally obtain the added/changed objects when comparing the ancestor trees with the
current tree and turn them into entries as well.
Otherwise, the same as AsIs.
This mode is useful to build a pack containing only new objects compared to a previous state.
Trait Implementations
Returns the “default value” for a type. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ObjectExpansion
impl Send for ObjectExpansion
impl Sync for ObjectExpansion
impl Unpin for ObjectExpansion
impl UnwindSafe for ObjectExpansion
Blanket Implementations
Mutably borrows from an owned value. Read more