You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Parameters | Type |
| --- | --- | --- |
| refname | String | the reference to lock |
Returns
Number
0 or an error message
Transaction#remove SyncExperimental
varresult=transaction.remove(refname);
| Parameters | Type |
| --- | --- | --- |
| refname | String | the reference to remove |
Returns
Number
0, GIT_ENOTFOUND if the reference is not among the locked ones, or an error code
Transaction#setReflog SyncExperimental
varresult=transaction.setReflog(refname,reflog);
| Parameters | Type |
| --- | --- | --- |
| refname | String | the reference whose reflog to set |
| reflog | Reflog | the reflog as it should be written out |
Returns
Number
0, GIT_ENOTFOUND if the reference is not among the locked ones, or an error code
| Parameters | Type |
| --- | --- | --- |
| refname | String | reference to update |
| target | String | target to set the reference to |
| sig | Signature | signature to use in the reflog; pass NULL to read the identity from the config |
| msg | String | message to use in the reflog |
Returns
Number
0, GIT_ENOTFOUND if the reference is not among the locked ones, or an error code
| Parameters | Type |
| --- | --- | --- |
| refname | String | reference to update |
| target | Oid | target to set the reference to |
| sig | Signature | signature to use in the reflog; pass NULL to read the identity from the config |
| msg | String | message to use in the reflog |
Returns
Number
0, GIT_ENOTFOUND if the reference is not among the locked ones, or an error code