git_describe_workdir

Describe a commit

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

extern (C) nothrow @nogc public
int
git_describe_workdir

Parameters

out_ .git_describe_result**

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

repo libgit2.types.git_repository*

the repository in which to perform the describe

opts .git_describe_options*

the lookup options (or null for defaults)

Return Value

Type: int

0 or an error code.

Meta