diff options
| author | Vicent Marti <tanoku@gmail.com> | 2013-04-15 23:32:40 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2013-04-15 23:32:40 +0200 |
| commit | 36c2dfed696f80a20ca1352f32ec8b136b800c30 (patch) | |
| tree | 99faf618d89ca3ee182331449df9ee5fd4b3c2f8 /include/git2/revparse.h | |
| parent | d064c74794f51e759cd84648f84f2609d3283ecc (diff) | |
| download | libgit2-36c2dfed696f80a20ca1352f32ec8b136b800c30.tar.gz | |
Is this crazy?
Diffstat (limited to 'include/git2/revparse.h')
| -rw-r--r-- | include/git2/revparse.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/include/git2/revparse.h b/include/git2/revparse.h index a992d2c48..3e334b4bb 100644 --- a/include/git2/revparse.h +++ b/include/git2/revparse.h @@ -44,8 +44,16 @@ typedef enum { GIT_REVPARSE_RANGE = 1 << 1, /** The spec used the '...' operator, which invokes special semantics. */ GIT_REVPARSE_MERGE_BASE = 1 << 2, -} git_revparse_flag_t; +} git_revparse_mode_t; +/** + * Git Revision: output of a `git_revparse` operation + */ +typedef struct { + git_object *from; + git_object *to; + unsigned int flags; +} git_revision; /** * Parse a revision string for left, right, and intent. See `man gitrevisions` or @@ -64,9 +72,7 @@ typedef enum { * @return 0 on success, GIT_INVALIDSPEC, GIT_ENOTFOUND, GIT_EAMBIGUOUS or an error code */ GIT_EXTERN(int) git_revparse( - git_object **left, - git_object **right, - unsigned int *flags, + git_revision *revision, git_repository *repo, const char *spec); |
