Skip to main content

identical_content

Function identical_content 

Source
pub fn identical_content(first: &Path, second: &Path) -> bool
Expand description

What: Report whether two files have the same length and the same bytes. Why: A copy of this executable under another name or directory is still this wrapper, although its inode differs. Lengths are compared first, so real Git is never read in full for this check.

In TS you’d write (pseudocode):

async function identicalContent(first: string, second: string): Promise<boolean>;