libgit2

git_refspec_direction

Version:

Get the refspec's direction.

Signature

git_direction git_refspec_direction(const git_refspec *spec);

Parameters

In
spec

refspec

Returns

GIT_DIRECTION_FETCH or GIT_DIRECTION_PUSH

Versions