@@ -293,9 +293,11 @@ Repository_git_object_lookup_prefix(Repository *self, PyObject *key)
293
293
294
294
295
295
PyDoc_STRVAR (Repository_lookup_branch__doc__ ,
296
- "lookup_branch(branch_name, [branch_type]) -> Object \n"
296
+ "lookup_branch(branch_name, [branch_type]) -> Branch \n"
297
297
"\n"
298
- "Returns the Git reference for the given branch name (local or remote)." );
298
+ "Returns the Git reference for the given branch name (local or remote).\n"
299
+ "If branch_type is GIT_BRANCH_REMOTE, you must include the remote name\n"
300
+ "in the branch name (eg 'origin/master')." );
299
301
300
302
PyObject *
301
303
Repository_lookup_branch (Repository * self , PyObject * args )
@@ -893,7 +895,7 @@ Repository_create_tag(Repository *self, PyObject *args)
893
895
894
896
895
897
PyDoc_STRVAR (Repository_create_branch__doc__ ,
896
- "create_branch(name, commit, force=False) -> bytes \n"
898
+ "create_branch(name, commit, force=False) -> Branch \n"
897
899
"\n"
898
900
"Create a new branch \"name\" which points to a commit.\n"
899
901
"\n"
@@ -968,7 +970,8 @@ Repository_listall_references(Repository *self, PyObject *args)
968
970
PyDoc_STRVAR (Repository_listall_branches__doc__ ,
969
971
"listall_branches([flags]) -> [str, ...]\n"
970
972
"\n"
971
- "Return a tuple with all the branches in the repository." );
973
+ "Return a tuple with all the branches in the repository.\n"
974
+ "By default, it returns all local branches." );
972
975
973
976
PyObject *
974
977
Repository_listall_branches (Repository * self , PyObject * args )
0 commit comments