Untitled
raw download clone
RUST
views 19
,
size 233 b
let parents : &[&Commit] = match self.get_last_commit() {
            Ok(commit) => &[&commit],
            Err(_) => &[],
        };
        self.repo.commit(Some("HEAD"), &committer, &committer, msg, &tree, parents)?;
close fullscreen
Login or Register to edit or fork this paste. It's free.