arzzen / git-quick-stats

▁▅▆▃▅ Git quick statistics is a simple and efficient way to access various statistics in git repository.
https://git-quick-stats.sh/
MIT License
6.27k stars 249 forks source link

Replaced grep commit by grep with regex including git sha hash #127

Closed pawalb closed 3 years ago

pawalb commented 3 years ago

Solving #126

myDailyStats() used grep commit to detect count of commits. This also increases the count by mentioning commit in the commit message.

Therefore a grep with regex is used that expects a 40 digit/char SHA1 hash after the word commit.

tomice commented 3 years ago

LGTM. Confirmed the bug in #126 and confirmed the fix on #127. Tested on Fedora 33, macOS 11.2.3, and WSL 1 with Ubuntu 20.04 LTS.

Thanks for finding and fixing the bug!