From aacdea005ab286df93f54ac944918e3b48fe44e7 Mon Sep 17 00:00:00 2001 From: Allanis Date: Sat, 22 Jun 2013 22:39:04 +0100 Subject: [PATCH] [Add] locperday.sh A nice little piece to see how many lines of code you wrote today. --- locperday.sh | 1 + 1 file changed, 1 insertion(+) create mode 100755 locperday.sh diff --git a/locperday.sh b/locperday.sh new file mode 100755 index 0000000..21c4d8c --- /dev/null +++ b/locperday.sh @@ -0,0 +1 @@ +git log --shortstat --author "Allanis" --since "1 day ago" --until "0 day ago" | grep "files changed" | awk '{files+=$1; inserted+=$4; deleted+=$6} END {print "| files changed", files, " | lines inserted:" inserted " | lines deleted:", deleted }'