Parcourir la source

fenzhiehebing

luwenna il y a 3 ans
Parent
commit
8297678cab
2 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. 1 1
      src/config.json
  2. 6 0
      work.sh

+ 1 - 1
src/config.json

@@ -35,7 +35,7 @@
 			"enabled":true,
 			"force":false
 		},
-		"article_original":{
+    	"article_original":{
 			"passive":true,
 			"enabled":true,
 			"force":true,

+ 6 - 0
work.sh

@@ -0,0 +1,6 @@
+# /bin/bash
+project="$1";
+echo "生成文件名:$0.txt";
+echo "start_time:$2";
+echo "end_time:$3";
+git log --since=$2 --until=$3 --format='%aN' | sort -u | while read name; do echo -en "$name,"; git log --author="$name" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -; done > $project.txt