品质管理 git_stats 可以过滤掉部分文件进行代码统计吗

大耳怪怪 · 2019年07月30日 · 最后由 大耳怪怪 回复于 2019年07月31日 · 1855 次阅读

git_stats 可以过滤掉部分文件进行代码统计吗?也就是只统计给出路径中的文件,过滤掉一些 bean 文件

共收到 2 条回复 时间 点赞

google 一下?
这个工具现在已经没有维护了,官方也没提供相关的功能
issue 里面有人提了一个解决方案 https://github.com/tomgi/git_stats/issues/13

git filter-branch --index-filter 'git rm --cached --ignore-unmatch -r *.svg' HEAD  # 之后再执行git_stats

算是曲线救国了

arrow 回复

谢谢!

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册