libgit2

git_describe_workdir

Version:

Describe a commit

Perform the describe operation on the current commit and the worktree. After peforming describe on HEAD, a status is run and the description is considered to be dirty if there are.

Signature

int git_describe_workdir(git_describe_result **out, git_repository *repo, git_describe_options *opts);

Parameters

In
repo

the repository in which to perform the describe

In
opts

the lookup options

Returns

int

Versions