libgit2

git_repository_is_shallow

Version:

Determine if the repository was a shallow clone

Signature

int git_repository_is_shallow(git_repository *repo);

Parameters

In
repo

The repository

Returns

int

1 if shallow, zero if not

Versions