开发者

Find git commits that "rewrite" files

I noticed this line after I committed something just now:

[master 6c15628] <Commit message>
 1 files changed, 49 insertions(+), 44 deletions(-)
 rewrite <filename> (63%)
开发者_开发知识库

Which I think is really cool, that git knew that I rewrote that file (i.e., the rewrite <filename> (63%) part). This has me more interested. Is there any git command to get a list of all commits/files that have been "rewritten" by git's standards?


Git doesn't really have a standard; this is just a UI presentation heuristic. Its output on this point might vary from version or version, or based on various other conditions.

If you wanted, you could probably write a script that used Git's similarity index with some threshold you specify to list the information you're interested in.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜