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 to properly push one git repository over another on codebasehq?
  • View already-committed Git merge in external 3-way diff tool
  • Alamofire framework not found
  • jenkins - Error cloning remote repo 'origin'
  • Changing the git branch on eclipse
  • Code Promotion with Git
  • How To Protect a GIT branch (like master)
  • Projects within projects using Git
  • MacPorts 2.1.2 git and libsndfile installation
  • Updating docker images with small changes using commits
  • How can one take several top-level projects in Gerrit and move them under another “container” project?
  • Structuring Go subpackages for teams
  • 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.