Hash signatures are used for file similary comparison; this is used for git's rename handling.
Similarity signature of arbitrary text content based on line hashes
Options for hashsig computation
Compute a similarity signature for a text buffer
Compute a similarity signature for a text file
Release memory for a content similarity signature
Measure similarity score between two similarity signatures