libgit2

git_hashsig_create_fromfile

Version:

Build a similarity signature from a file

This walks through the file, only loading a maximum of 4K of file data at a time. Otherwise, it acts just like git_hashsig_create.

This will return an error if the file doesn't contain enough data to compute a valid signature.

Signature

int git_hashsig_create_fromfile(git_hashsig **out, const char *path, git_hashsig_option_t opts);

Parameters

const char *
In
path

Returns

int

Versions