소스 검색

fenzhiehebing

luwenna 3 년 전
부모
커밋
8297678cab
2개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  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