mirror of
https://forge.pointfixe.fr/hubert/gitust.git
synced 2026-02-04 10:17:28 +01:00
get_tags_nbr
This commit is contained in:
@@ -96,4 +96,10 @@ impl GitRepo {
|
|||||||
res
|
res
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn get_tags_nbr(&self) -> u32 {
|
||||||
|
let mut res = 0;
|
||||||
|
self.git2.tag_foreach(|_,_| {res = res + 1;true});
|
||||||
|
res
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ pub async fn git_main<T : AuthValidator>(
|
|||||||
user_opt : user,
|
user_opt : user,
|
||||||
revisions_nbr : gitrepo.get_revisions_nbr(),
|
revisions_nbr : gitrepo.get_revisions_nbr(),
|
||||||
branches_nbr : gitrepo.get_branches_nbr(),
|
branches_nbr : gitrepo.get_branches_nbr(),
|
||||||
tags_nbr : 88,
|
tags_nbr : gitrepo.get_tags_nbr(),
|
||||||
size : "16 KiB".to_string(),
|
size : "16 KiB".to_string(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user