Skip to content

Commit

Permalink
document new ways to init a repo
Browse files Browse the repository at this point in the history
  • Loading branch information
esc committed Feb 28, 2013
1 parent a41f59d commit db02a2d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/repository.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@ The repository
This is how to create non-bare repository::

>>> from pygit2 import init_repository
>>> bare = False
>>> repo = init_repository('test', bare)
>>> repo = init_repository('test')

And this is how to create a bare repository::

>>> from pygit2 import init_repository
>>> repo = init_repository('test', bare=True)

But one can also do::

>>> from pygit2 import init_repository
>>> repo = init_repository('test', True)

.. autofunction:: pygit2.discover_repository

Expand Down

0 comments on commit db02a2d

Please sign in to comment.