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?

  • How does git status work internally?
  • Git Bash & Pageant not using keys
  • Commit history on remote repository
  • what means “git fully backup”?
  • How to make vi redraw screen?
  • How to have the result of «git commit -v» in a splited window instead of in comments ?
  • how to rename a master branch when using gitolite
  • Github for windows just deleted all my files
  • How to add files to be committed in a faster way?
  • git mingw32 and long path/file names under windows
  • splitting a git repository
  • How to add a ssh key to connect to git?
  • 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.

    Git Baby is a git and github fan, let's start git clone.