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
out

pointer to store the result. You must free this once you're done with it.

In
repo

the repository in which to perform the describe

In
opts

the lookup options (or NULL for defaults)

Returns

int

Versions