Struct rubbish::fs::Commit [] [src]

pub struct Commit { /* fields omitted */ }

Methods

impl Commit
[src]

Create the root commit (no parents, empty tree)

Get the tree at this commit

Create a child commit based on this one, applying the modifier function to the enclosed tree. This function can call any Tree methods, or even return an entirely unrelated Tree. If the modifier returns an error, make_child does as well.

Get a commit from storage, given its hash

Store this commit and return the hash

Trait Implementations

impl Debug for Commit
[src]

Formats the value using the given formatter.

impl Clone for Commit
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more