{"size": 1448, "ext": "scrbl", "max_stars_repo_path": "libgit2/scribblings/revparse.scrbl", "max_stars_repo_name": "guygastineau/libgit2", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "libgit2/scribblings/revparse.scrbl", "max_issues_repo_name": "guygastineau/libgit2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "libgit2/scribblings/revparse.scrbl", "max_forks_repo_name": "guygastineau/libgit2", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 32.1777777778, "max_line_length": 194, "alphanum_fraction": 0.7230662983}
#lang scribble/manual

@(require (for-label racket))

@title{Revparse}

@defmodule[libgit2/include/revparse]


@defproc[(git_revparse
          [revspec revspec?]
          [repo repository?]
          [spec string?])
         integer?]{
 Parse a revision string for from, to, and intent.

 See man gitrevisions or http://git-scm.com/docs/git-rev-parse.html#_specifying_revisions for information on the syntax accepted.

}

@defproc[(git_revparse_ext
          [repo repository?]
          [spec string?])
         reference?]{
 Find a single object and intermediate reference by a revision string.

 See man gitrevisions, or http://git-scm.com/docs/git-rev-parse.html#_specifying_revisions for information on the syntax accepted.

 In some cases (@"@{<-n>}" or @"<branchname>@{upstream}"), the expression may point to an intermediate reference. When such expressions are being passed in, reference_out will be valued as well.

 The returned object should be released with git_object_free and the returned reference with git_reference_free when no longer needed.

}

@defproc[(git_revparse_single
          [repo repository?]
          [spec string?])
         object?]{
 Find a single object, as specified by a revision string.

 See man gitrevisions, or http://git-scm.com/docs/git-rev-parse.html#_specifying_revisions for information on the syntax accepted.

 The returned object should be released with git_object_free when no longer needed.
}
