What does the message "rewrite ... (90%)" after a Git commit mean?

git

Solution

Its a measure of the similarity index. The similarity index is the percentage of unchanged lines. git thinks your file is text.

Problem

When git does a commit it rewrites binary files with something similar to `rewrite foobar.bin (76%)`. What is that %? Is it percent changed or percent retained from the older file. I know that git uses a binary delta for files, but I just don't know how much of a rewrite the % represents and it doesn't seem to be in the help page for `git help commit`. Thanks!

Original source

Related problems