mirror of
https://forge.pointfixe.fr/hubert/gitust.git
synced 2026-02-04 18:47:29 +01:00
get_branches_nbr
This commit is contained in:
@@ -88,4 +88,12 @@ impl GitRepo {
|
||||
res
|
||||
}
|
||||
|
||||
pub fn get_branches_nbr(&self) -> u32 {
|
||||
let mut res = 0;
|
||||
for _ in self.git2.branches(Some(BranchType::Local)){
|
||||
res = res + 1;
|
||||
}
|
||||
res
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user