On this page:
git_  refspec_  direction
git_  refspec_  dst
git_  refspec_  dst_  matches
git_  refspec_  force
git_  refspec_  rtransform
git_  refspec_  src
git_  refspec_  src_  matches
git_  refspec_  string
git_  refspec_  transform
8.12

35 Refspec🔗ℹ

 (require libgit2/include/refspec) package: libgit2

procedure

(git_refspec_direction spec)  git_direction

  spec : refspec?
Get the refspec’s direction.

procedure

(git_refspec_dst refspec)  string?

  refspec : refspec?
Get the destination specifier

procedure

(git_refspec_dst_matches refspec refname)  boolean?

  refspec : refspec?
  refname : string?
Check if a refspec’s destination descriptor matches a reference

procedure

(git_refspec_force refspec)  boolean?

  refspec : refspec?
Get the force update setting

procedure

(git_refspec_rtransform out spec name)  integer?

  out : buf?
  spec : refspec?
  name : string?
Transform a target reference to its source reference following the refspec’s rules

procedure

(git_refspec_src refspec)  string?

  refspec : refspec?
Get the source specifier

procedure

(git_refspec_src_matches refspec refname)  boolean?

  refspec : refspec?
  refname : string?
Check if a refspec’s source descriptor matches a reference

procedure

(git_refspec_string refspec)  string?

  refspec : refspec?
Get the refspec’s string

procedure

(git_refspec_transform out spec name)  integer?

  out : buf?
  spec : refspec?
  name : string?
Transform a reference to its target following the refspec’s rules