kimmobrunfeldt / git-hours

Estimate time spent on a git repository
MIT License
774 stars 59 forks source link

git-hours cannot be launched from npx #45

Closed beenotung closed 3 years ago

beenotung commented 5 years ago

Env

Software Version
node v10.16.0
npm 6.12.0
OS Archlinux

Suggestions

  1. As mentioned in the readme, it is tricky to work with nodegit, could we not depends on it? e.g. just via exec git log then parse the stdout directly
  2. Could we rewrite it to be standlone npm executable? Instead of hooking onto git alias, i.e. git-hours instead of git hours
beenotung commented 5 years ago

found this one works pretty well https://github.com/vmf91/git-time But it doesn't distinct each contributors

beenotung commented 5 years ago

inspired by your work, I also made one https://github.com/beenotung/git-hour which distinct each contributors

kimmobrunfeldt commented 3 years ago

After new release 1.5.0, npx git-hours works again! Tested with node 14, macOS. The node version is probably quite specific.