1
RoyLeong 2019 年 1 月 24 日 via Android
敢问楼主是怎么统计自己的代码行数的?
|
2
AEANWspPmj3FUhDc 2019 年 1 月 24 日
@RoyLeong
如果使用了 git 进行管理,可以计算出指定日期内的增删代码行数。 |
3
AEANWspPmj3FUhDc 2019 年 1 月 24 日
cloc (好像是这个,好久没用可能打错)可以统计不同出语言各多少行。
|
4
mywaiting 2019 年 1 月 24 日
我这几天 commit 的代码量都有 2k+ 行....... 真一行行手写的..........
|
5
anzu 2019 年 1 月 24 日 找了个统计脚本,记得换上自己的大名~
``` git log --author="YouName" --since=2018-01-01 --until=2018-12-31 --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 }' - ``` 我自己的,新增 4.5 万行,删除 1.3 万,总计 3.3 万 |
6
so1n 2019 年 1 月 24 日
一个仓库就几万- -
|
7
SoloCompany 2019 年 1 月 25 日
|
8
pubby 2019 年 1 月 25 日
后端 go added lines: 219927, removed lines: 18711, total lines: 201216
|
9
PerFectTime 2019 年 1 月 25 日
emmmm 求一个 svn 的计算命令
|
10
andrewpsy 2019 年 1 月 25 日
后端,很满足。
added lines: 9186, removed lines: 38333, total lines: -29147 |
11
Pyjamas 2019 年 1 月 25 日
我也忘了我干了啥了
added lines: 365129, removed lines: 131727, total lines: 233402 |
12
Pyjamas 2019 年 1 月 25 日
这个脚本里的日期好像没用啊,改了改发现结果是一样的
|
13
STRRL 2019 年 1 月 25 日
added lines: 90111, removed lines: 73902, total lines: 16209
|
14
ixiaozhi 2019 年 1 月 25 日
许多个仓库一一统计也挺累的
|
15
glaucus 2019 年 1 月 25 日
added lines: 209529, removed lines: 194346, total lines: 15183
|
16
newtype0092 2019 年 1 月 25 日
删除行数也同样重要。
|
17
shd 2019 年 1 月 25 日
added lines: 1759536, removed lines: 2688, total lines: 1756848
|
18
huangdayu 2019 年 1 月 26 日
added lines: 86292, removed lines: 66055, total lines: 20237
|