Skip to content

Commit

Permalink
fix(git): git-stats invalid syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Jan 29, 2024
1 parent 7a78d8d commit 63e046d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkgs/bins/bin/git-stats
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/sh
# based on https://twitter.com/thorstenball/status/1293181225280999431
git log \
--since '30 days ago' \
--author (git config --global user.name) \
--pretty=tformat: --numstat |
awk '{
--since '30 days ago' \
--author "$(git config --global user.name)" \
--pretty=tformat: --numstat |
awk '{
add += $1; subs += $2; loc += $1 - $2
} END {
printf "Lines: +\033[32m%s\033[0m -\033[31m%s\033[0m\nTotal: %s\n", add, subs, loc
Expand Down

0 comments on commit 63e046d

Please sign in to comment.