一个时间段内修改了多少行代码? [英] How many lines of code modified during a time period?

查看:27
本文介绍了一个时间段内修改了多少行代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的任务是计算我今年编写了多少行代码.由于多种原因,这不是很令人兴奋,但它似乎可以提出一个很好的 SO 问题.

I have been tasked with figuring out how many lines of code I've written this year. Not very exciting for a number of reasons, but it seems like it could make a nice SO question.

那么在你最喜欢的版本控制工具中,你怎么知道修改了多少行代码?在我的特定答案中,空行和评论恰好可以用来简化分配给确定答案的时间,但请随意详细说明.

So in your favorite version control tool, how do you tell how many lines of code have been modified? In my particular answer blank lines and comments happen to count to simplify the time allotted to determining the answer, but feel free to elaborate.

在我的特殊情况下,我使用的是 svn,所以我将摆脱所有 --- 以及 svn log 和 svn diff 输出的其他杂项输出.

In my particular case I'm using svn, so I'm going to get rid of all the --- and other misc output that svn log and svn diff output.

推荐答案

使用 StatSVN.我在工作中使用它,它很棒,它会按月按开发人员分解 LOC.它会绘制漂亮的图表,告诉您一周中的哪一天以及您签入最多代码的时间.它会准确地告诉您需要了解的内容.

Use StatSVN. I use it at work and it's great, it'll break down LOC by developer by month. It'll draw pretty graphs, tell you what day of the week and what time you check in the most code. It'll tell you exactly what you need to know.

这篇关于一个时间段内修改了多少行代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆