admin管理员组文章数量:1400524
This is for a javascript app, so no UI needed.
My goal is to get stats of changes between 2 commits, basically exactly what git diff --numstat
does, but also, along with the additions and deletions count, i would want to have "lines moved out", "lines moved in" and "lines moved internally (from one place in the file to another)" stats for each file.
Is my best bet just running diff with --color-moved
and manually storing all moved lines and then in js post-processing determine if they "ended up in/came from" some other place in that file, or were moved out/in from some other file (doesn't matter which one)
Efficiency is important, and this feels kind of wasteful because --color-moved
already does all the heavy work needed, but doesn't expose and track these stats, which would be trivial.
There are a bunch of existing tools for extending the diffing experience but AFAIK none have any feature like this?
本文标签: How to achieve quotgit diff numstatquot with additional moved lines statsStack Overflow
版权声明:本文标题:How to achieve "git diff --numstat" with additional moved lines stats - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744253985a2597387.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论