usegit2::{Branch, Commit};/// A set of extension methods for the `Branch` type in git2.
pubtraitBranchExt{/// Gets the `Commit` at the tip of this `Branch`.
fntip_commit(&self)->Option<Commit>;}impl<'repo> BranchExt forBranch<'repo>{fntip_commit(&self)->Option<Commit>{self.get().peel_to_commit().ok()}}