From 80b360fcb1118d9c51db75ffdcef978986be1b37 Mon Sep 17 00:00:00 2001 From: Xawirses Date: Wed, 1 Apr 2015 15:05:51 +0200 Subject: [PATCH] Add script for extract commits infotmation --- phase0.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 phase0.sh diff --git a/phase0.sh b/phase0.sh new file mode 100755 index 0000000..3fb6538 --- /dev/null +++ b/phase0.sh @@ -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