Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/recipes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Main porcelain commands
.. toctree::
:maxdepth: 1

git-branch (List, create, or delete branches.) <recipes/git-branch>
git-init (Create an empty git repository or reinitialize an existing one.) <recipes/git-init>
git-log (Show commit logs.) <recipes/git-log>
git-show (Show various types of objects.) <recipes/git-show>
Expand Down
30 changes: 0 additions & 30 deletions docs/recipes/git-branch.rst

This file was deleted.

11 changes: 8 additions & 3 deletions src/repository.c
Original file line number Diff line number Diff line change
Expand Up @@ -936,10 +936,15 @@ Repository_listall_references(Repository *self, PyObject *args)


PyDoc_STRVAR(Repository_listall_branches__doc__,
"listall_branches([flags]) -> [str, ...]\n"
"listall_branches([flag]) -> [str, ...]\n"
"\n"
"Return a tuple with all the branches in the repository.\n"
"By default, it returns all local branches.");
"Return a list with all the branches in the repository.\n"
"\n"
"The *flag* may be:\n"
"\n"
"- GIT_BRANCH_LOCAL - return all local branches (set by default)\n"
"- GIT_BRANCH_REMOTE - return all remote-tracking branches\n"
"- GIT_BRANCH_ALL - return local branches and remote-tracking branches");

PyObject *
Repository_listall_branches(Repository *self, PyObject *args)
Expand Down