usegit2::{TreeEntry, ObjectType};/// A set of extension methods for the `Tree` type in `git2`.
pubtraitTreeEntryExt{/// Returns whether this entry in the tree represents a subtree, which would be a subdirectory
/// on disk.
fnis_dir(&self)->bool;}impl<'repo> TreeEntryExt forTreeEntry<'repo>{fnis_dir(&self)->bool{matchself.kind(){Some(ObjectType::Tree)=>true,_=>false}}}