Skip to content

Commit

Permalink
Merge branch 'patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Dec 17, 2022
2 parents 083909b + 0a72c18 commit fbce7bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git-repository/examples/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

// let num_branches = repo.branches()?;
// let num_branches = repo.branches.remote("origin")?;
let num_branches = repo.references()?.prefixed("refs/heads/")?.count();
let num_remote_branches = repo.references()?.prefixed("refs/remotes/")?.count();
let num_tags = repo.references()?.prefixed("refs/tags/")?.count();
let num_branches = repo.references()?.local_branches()?.count();
let num_remote_branches = repo.references()?.remote_branches()?.count();
let num_tags = repo.references()?.tags()?.count();
let broken_refs = repo
.references()?
.all()?
Expand Down

0 comments on commit fbce7bb

Please sign in to comment.