Hacker Newsnew | past | comments | ask | show | jobs | submitlogin



Still doesn't work (for me, osx)

  user@host ~/tmp # npm install -g git-stats
  /usr/local/bin/git-stats -> /usr/local/lib/node_modules/git-stats/bin/git-stats
  git-stats@1.1.0 /usr/local/lib/node_modules/git-stats                                                                                                                                                       ├── ul@1.1.0
  ├── ansi-parser@1.4.0                                                                                                                                                                                       ├── cli-box@2.1.1 (ansi-parser@1.3.0)
  ├── moment@2.9.0                                                                                                                                                                                            ├── git-stats-colors@1.0.0 (couleurs@3.0.0)
  └── bug-killer@1.0.0 (couleurs@1.1.0)                                                                                                                                                                       user@host ~/tmp # npm install -g git-stats-importer                                                                                                                                                         /usr/local/bin/git-stats-importer -> /usr/local/lib/node_modules/git-stats-importer/bin/git-stats-importer
  git-stats-importer@1.3.0 /usr/local/lib/node_modules/git-stats-importer                                                                                                                                     ├── gry@1.0.0
  ├── async@0.9.0                                                                                                                                                                                             ├── oargv@1.2.0 (ul@1.1.0)
  ├── bug-killer@1.0.0 (couleurs@1.1.0)                                                                                                                                                                       └── git-stats@1.1.0 (ul@1.1.0, ansi-parser@1.4.0, git-stats-colors@1.0.0, cli-box@2.1.1, moment@2.9.0)
  user@host ~/tmp # git clone https://github.com/IonicaBizau/git-stats
  Cloning into 'git-stats'...                                                                                                                                                                                 remote: Counting objects: 414, done.
  remote: Total 414 (delta 0), reused 0 (delta 0)                                                                                                                                                             Receiving objects: 100% (414/414), 47.08 KiB | 0 bytes/s, done.
  Resolving deltas: 100% (189/189), done.                                                                                                                                                                     Checking connectivity... done.
  user@host ~/tmp : cd git-stats
  user@host ~/tmp/git-stats # git-stats-importer
  info  Done.
  user@host ~/tmp/git-stats # git stats
  ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
  ║   Mar      Apr      May      Jun      Jul      Aug      Sep      Oct      Nov      Dec      Jan      Feb       ║
  ║Sun   ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ║
  ║Mon   ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ║
  ║Tue   ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■   ║
  ║Wed   ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■   ║
  ║Thu   ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■   ║
  ║Fri   ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■   ║
  ║Sat   ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■   ║
  ║--------------------------------------------------------------------------------------------------------------  ║
  ║Contributions in the last year: 0 | Longest Streak: 0 days | Current Streak: 0 days | Max a day: 0              ║
  ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
  user@host ~/tmp/git-stats # cat $HOME/.git-stats
  {}


git-stats-importer also only imports commits by the user set in the global user.email config. Since you haven't made any commits to the git-stats repo, it doesn't show anything.

Edit: it will use the local user.email if that is set. It also will use the GIT_AUTHOR_EMAIL but only as a fallback if user.email is unset


Ah, I see. A bit annoying when using more than one user.email across projects. But git-cal works okay :)

Thanks for the info.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: