Skip to content

Commit e81d395

Browse files
committed
Merge remote-tracking branch 'rmoehn/master'
2 parents 4f88840 + d341cff commit e81d395

File tree

3 files changed

+8
-34
lines changed

3 files changed

+8
-34
lines changed

docs/recipes.rst

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Main porcelain commands
1717
.. toctree::
1818
:maxdepth: 1
1919

20-
git-branch (List, create, or delete branches.) <recipes/git-branch>
2120
git-init (Create an empty git repository or reinitialize an existing one.) <recipes/git-init>
2221
git-log (Show commit logs.) <recipes/git-log>
2322
git-show (Show various types of objects.) <recipes/git-show>

docs/recipes/git-branch.rst

-30
This file was deleted.

src/repository.c

+8-3
Original file line numberDiff line numberDiff line change
@@ -936,10 +936,15 @@ Repository_listall_references(Repository *self, PyObject *args)
936936

937937

938938
PyDoc_STRVAR(Repository_listall_branches__doc__,
939-
"listall_branches([flags]) -> [str, ...]\n"
939+
"listall_branches([flag]) -> [str, ...]\n"
940940
"\n"
941-
"Return a tuple with all the branches in the repository.\n"
942-
"By default, it returns all local branches.");
941+
"Return a list with all the branches in the repository.\n"
942+
"\n"
943+
"The *flag* may be:\n"
944+
"\n"
945+
"- GIT_BRANCH_LOCAL - return all local branches (set by default)\n"
946+
"- GIT_BRANCH_REMOTE - return all remote-tracking branches\n"
947+
"- GIT_BRANCH_ALL - return local branches and remote-tracking branches");
943948

944949
PyObject *
945950
Repository_listall_branches(Repository *self, PyObject *args)

0 commit comments

Comments
 (0)