Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

justanotherdot/swish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swish

deterministically compare sets of file

Why?

Sometimes you want to know if two sets of files are exactly the same but you do not want to care about finding some hacky way of checking them. Consider two JSON files, for example, that may be validly sorted by the specification, but may not compare easily. One could sort the files and compare them using diff but this approach isn't easily reproducible to every file that may not necessarily be line-delimited.

How?

git compares packfiles using a SHA1 of the sorted collection of the SHA1s for every git object. swish does the same thing, effectively, but extrapolates it out to two or more files as need be.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages