Add checkoutBranch function. Fix incorrect INCREF of non-Python object.

This commit is contained in:
John J. Camilleri
2021-09-24 11:47:46 +02:00
parent 139e851f22
commit 917c223db7
4 changed files with 46 additions and 12 deletions

View File

@@ -353,6 +353,9 @@ static PyMethodDef PGF_methods[] = {
"Returns the probability of a function"
},
{"checkoutBranch", (PyCFunction)PGF_checkoutBranch, METH_VARARGS,
"Switch to a branch"
},
{"newTransaction", (PyCFunction)PGF_newTransaction, METH_VARARGS,
"Create new transaction"
},