kimmobrunfeldt / kimmobrunfeldt/git-hours

At least commit count is wrong

Open
#67 2 comments 6 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.