layout
default
menu_item
api
title
Refspec
description
Version 0.19.0
return_to
API Documentation Index
/api/
sections
#direction
#dst
#dstMatches
#force
#src
#srcMatches
#direction
#dst
#dstMatches
#force
#src
#srcMatches
Refspec# direction Sync Experimental
var result = refspec . direction ( ) ;
Returns
Number
GIT_DIRECTION_FETCH or GIT_DIRECTION_PUSH
Refspec# dst Sync Experimental
var string = refspec . dst ( ) ;
Returns
String
the refspec's destination specifier
Refspec# dstMatches Sync Experimental
var result = refspec . dstMatches ( refname ) ;
| Parameters | Type |
| --- | --- | --- |
| refname | String | the name of the reference to check |
Returns
Number
1 if the refspec matches, 0 otherwise
Refspec# force Sync Experimental
var result = refspec . force ( ) ;
Returns
Number
1 if force update has been set, 0 otherwise
Refspec# src Sync Experimental
var string = refspec . src ( ) ;
Returns
String
the refspec's source specifier
Refspec# srcMatches Sync Experimental
var result = refspec . srcMatches ( refname ) ;
| Parameters | Type |
| --- | --- | --- |
| refname | String | the name of the reference to check |
Returns
Number
1 if the refspec matches, 0 otherwise