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