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?
One Solution collect form web for “Find git commits that “rewrite” files”
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.