mirror of
https://github.com/git-quick-stats/git-quick-stats.git
synced 2026-05-25 11:24:56 +02:00
Replaced grep commit by grep with regex including git sha hash
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.
This commit is contained in:
+1
-1
@@ -546,7 +546,7 @@ function myDailyStats() {
|
||||
--author="$(git config user.name)" $_merges \
|
||||
--since=$(date "+%Y-%m-%dT00:00:00") \
|
||||
--until=$(date "+%Y-%m-%dT23:59:59") --reverse $_log_options \
|
||||
| grep commit | wc -l) "commits"
|
||||
| grep -E "commit [a-f0-9]{40}" | wc -l) "commits"
|
||||
}
|
||||
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user