diff options
author | Ben Straub <bstraub@github.com> | 2012-04-25 16:24:22 -0700 |
---|---|---|
committer | Ben Straub <bstraub@github.com> | 2012-05-11 11:30:45 -0700 |
commit | ac250c56c7d7bb11691c9dfbcd0dbf580d85e177 (patch) | |
tree | 09684c246208dcf49386561203b6bc2e255ba532 /include/git2/revparse.h | |
parent | fb49bdf9c7837892154bf7efdb3db6c3ec63e396 (diff) | |
download | libgit2-ac250c56c7d7bb11691c9dfbcd0dbf580d85e177.tar.gz |
First stab at implementation of rev-parse.
This version supports refspecs of these kinds:
- Full & partial SHAs
- Output from "git describe"
- "/refs/heads/master" (full ref names)
- "master" (partial ref names)
- "FETCH_HEAD" (named heads)
Diffstat (limited to 'include/git2/revparse.h')
-rw-r--r-- | include/git2/revparse.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/git2/revparse.h b/include/git2/revparse.h new file mode 100644 index 000000000..3fd69d91d --- /dev/null +++ b/include/git2/revparse.h @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2012 the libgit2 contributors + * + * This file is part of libgit2, distributed under the GNU GPL v2 with + * a Linking Exception. For full terms see the included COPYING file. + */ +#ifndef INCLUDE_git_revparse_h__ +#define INCLUDE_git_revparse_h__ + +#include "common.h" +#include "types.h" + + +GIT_BEGIN_DECL + +GIT_EXTERN(int) git_revparse_single(git_object **out, git_repository *repo, const char *spec); + +//GIT_EXTERN(int) git_revparse_multi(TODO); + +GIT_END_DECL + +#endif |