{"size": 1428, "ext": "scrbl", "max_stars_repo_path": "libgit2/scribblings/refspec.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/refspec.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/refspec.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": 18.5454545455, "max_line_length": 83, "alphanum_fraction": 0.6323529412}
#lang scribble/manual

@(require (for-label racket))

@title{Refspec}

@defmodule[libgit2/include/refspec]


@defproc[(git_refspec_direction
          [spec refspec?])
         _git_direction]{
 Get the refspec's direction.

}

@defproc[(git_refspec_dst
          [refspec refspec?])
         string?]{
 Get the destination specifier

}

@defproc[(git_refspec_dst_matches
          [refspec refspec?]
          [refname string?])
         boolean?]{
 Check if a refspec's destination descriptor matches a reference

}

@defproc[(git_refspec_force
          [refspec refspec?])
         boolean?]{
 Get the force update setting

}

@defproc[(git_refspec_rtransform
          [out buf?]
          [spec refspec?]
          [name string?])
         integer?]{
 Transform a target reference to its source reference following the refspec's rules

}

@defproc[(git_refspec_src
          [refspec refspec?])
         string?]{
 Get the source specifier

}

@defproc[(git_refspec_src_matches
          [refspec refspec?]
          [refname string?])
         boolean?]{
 Check if a refspec's source descriptor matches a reference

}

@defproc[(git_refspec_string
          [refspec refspec?])
         string?]{
 Get the refspec's string

}

@defproc[(git_refspec_transform
          [out buf?]
          [spec refspec?]
          [name string?])
         integer?]{
 Transform a reference to its target following the refspec's rules
}
