统计两个版本之间代码变更行数

2025-05-06 18:11:05

1、解压diffcount压缩包,将其放在C盘。

2、在C:\diffcount\diffcount\test下建立两个文件夹,old,new.

3、将需要比较的未改动之前版本的代码分别复制到两个文件夹。

4、使用改动完成的代码将new文件夹中的代码覆盖,得到两个差异版本。

统计两个版本之间代码变更行数

6、输入 "diffcount test\old test\new --print-files-info > result.txt"将比较结果输出到“C:\diffcount\diffcount\result.txt”(注:如果文件较多执行时间较长)

统计两个版本之间代码变更行数

8、帮助C:\diffcount\蟠校盯昂diffcount>diffcount.exe --helpUsage多唉捋胝: diffcount.exe [OPTION]... (Baseline) TargetCompare and diff two packages or only couting one code packageOPTIONS: -c --count-only Only counting one code package --ignore-case Ignore the difference of file name case --print-lines-info Print detailed information of every diffed lines Slow, Debug use only --print-files-info Print every diffed file result information. --force-parse-all Parsing all diffed files(default: skip same file) --for-program-reading Change result output style for Third-party program reading Will disable --print-lines-info automaticly -v --version Output current version. --help Show this page --cn-help Show Chinese help page

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢