Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

At least commit count is wrong #67

Open
SuperCuber opened this issue Jan 1, 2022 · 1 comment
Open

At least commit count is wrong #67

SuperCuber opened this issue Jan 1, 2022 · 1 comment

Comments

@SuperCuber
Copy link

Using a random repo I have:

$ git-hours
total commits: 1371
$ git rev-list --count --all
690

Maybe it's duplicating commits that were merged from another branch?

@MilesCranmer
Copy link

Same here, but seeing this with a factor of 40x! On my SymbolicRegression.jl repo, which has maybe ~100 merges to master:

$ git-hours
{
...
  },
  "total": {
    "hours": 1137,
    "commits": 90881
  }
}
$ git rev-list --count --all
2264

I tried specifying git-hours -b master but that doesn't fix this; it is still massively overcounting commits. @kimmobrunfeldt any idea why it is 40x overcounting? Maybe just removing the git merges from the history would be a quick way to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants