kimmobrunfeldt / kimmobrunfeldt/git-hours
At least commit count is wrong
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 817
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the discrepancy in the issue with git-hours and git rev-list --count --all, then trace the code that calculates the total commit count. Done means git-hours reports the repository's actual commit count without duplicating commits merged from another branch, with a regression test for the reported case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100