diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2014-09-30 08:54:52 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-09-30 08:56:20 +0200 |
| commit | fd8126e4c605e749ed6ab1e31ac32366adc8cc8f (patch) | |
| tree | 813de2cce7edc976daac6e3f34198ade5e4cea84 /include/git2/describe.h | |
| parent | 3b6534b80768e8751b398cd3aeffb888e374c8d4 (diff) | |
| download | libgit2-fd8126e4c605e749ed6ab1e31ac32366adc8cc8f.tar.gz | |
describe: implement describing the workdir
When we describe the workdir, we perform a describe on HEAD and then
check to see if the worktree is dirty. If it is and we have a suffix
string, we append that to the buffer.
Diffstat (limited to 'include/git2/describe.h')
| -rw-r--r-- | include/git2/describe.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/git2/describe.h b/include/git2/describe.h index 6007b004e..8b80e1806 100644 --- a/include/git2/describe.h +++ b/include/git2/describe.h @@ -75,6 +75,11 @@ GIT_EXTERN(int) git_describe_commit( git_object *committish, git_describe_opts *opts); +GIT_EXTERN(int) git_describe_workdir( + git_describe_result **out, + git_repository *repo, + git_describe_opts *opts); + GIT_EXTERN(int) git_describe_format(git_buf *out, const git_describe_result *result, const git_describe_format_options *opts); GIT_EXTERN(void) git_describe_result_free(git_describe_result *result); |
