libgit2

refspec

Version:
Refspecs map local references to remote references

Objects

A refspec specifies the mapping between remote and local reference names when fetch or pushing

Functions

Parse a given refspec string

Free a refspec object which has been created by git_refspec_parse

Get the source specifier

Get the destination specifier

Get the refspec's string

Get the force update setting

Get the refspec's direction

Check if a refspec's source descriptor matches a reference

Check if a refspec's destination descriptor matches a reference

Transform a reference to its target following the refspec's rules

Transform a target reference to its source reference following the refspec's rules