Add script for extract commits infotmation

This commit is contained in:
Xawirses
2015-04-01 15:05:51 +02:00
parent dbfb63029b
commit 80b360fcb1

10
phase0.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
IFS=$'\n'
DATA=(`git log --since="1 week ago" --until="now" --no-merges --format='"%H","%ct","%an","%ae","%s",'`)
LINES=(`git log --since="1 week ago" --until="now" --no-merges --pretty=tformat: --shortstat | gawk '(NF > 0){ printf "%s,%s\n",$1,$4 }' -`)
i=0
while [ $i -lt ${#DATA[@]} ]; do
echo "${DATA[$i]}${LINES[$i]}"
i=$[i + 1]
done