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?

  • SSL certificate error while pushing to Heroku
  • Why is there “nothing to commit” after I added my new directory?
  • Why does GitHub not let us create our repositories using the command line out-of-the-box?
  • Is it possible to use custom hooks in gitlab 8 for project commit?
  • What Are Some Actions In Git That Are Difficult/Impossible to Undo?
  • Unversion on Git
  • Added commits in the wrong git repository
  • How to stop git hanging on commit in cygwin bash
  • Recovering added file after doing git reset --hard HEAD^
  • How to delete the last n commit on Github and locally?
  • How to show only deletions on git history
  • Copying preexisting code to git repo in a different location
  • 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.