-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework Line Ending Normalization => Hash Rules
The existing implementation did not account for mac line endings and did not normalize new hashes to be consistent. This change does three things: - All future hashes are computed with line ending normalized to unix - Compares hashes with the unnormalized and the unix normalized (accounts for old hashes and new) - Compares the hash value with the line endings normalized to windows, unix, or mac Any existing hash in the database that was calculated from a file with any consistent line ending should be pronounced equal. The only case that we are not going to handle is if the existing hash was calculated from a file with mixed line endings and the line endings have changed.
- Loading branch information
1 parent
d5678b4
commit 82649eb
Showing
1 changed file
with
22 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters