git-hours icon indicating copy to clipboard operation
git-hours copied to clipboard

At least commit count is wrong

Open SuperCuber opened this issue 4 years ago • 1 comments

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?

SuperCuber avatar Jan 01 '22 13:01 SuperCuber

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?

MilesCranmer avatar Nov 28 '22 15:11 MilesCranmer