From 0b813371f5a8af95152cae109d28c7c97bfaf79f Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 21 Nov 2010 17:48:03 +0100 Subject: Fixed API reference docs as far as possible --- lib/git/repo/base.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/git/repo/base.py') diff --git a/lib/git/repo/base.py b/lib/git/repo/base.py index aa00d028..6f401628 100644 --- a/lib/git/repo/base.py +++ b/lib/git/repo/base.py @@ -226,12 +226,13 @@ class Repo(object): @property def submodules(self): - """:return: git.IterableList(Submodule, ...) of direct submodules + """ + :return: git.IterableList(Submodule, ...) of direct submodules available from the current head""" return Submodule.list_items(self) def submodule(self, name): - """:return: Submodule with the given name + """ :return: Submodule with the given name :raise ValueError: If no such submodule exists""" try: return self.submodules[name] @@ -241,6 +242,7 @@ class Repo(object): def create_submodule(self, *args, **kwargs): """Create a new submodule + :note: See the documentation of Submodule.add for a description of the applicable parameters :return: created submodules""" @@ -719,7 +721,7 @@ class Repo(object): """Create a clone from the given URL :param url: valid git url, see http://www.kernel.org/pub/software/scm/git/docs/git-clone.html#URLS :param to_path: Path to which the repository should be cloned to - :param **kwargs: see the ``clone`` method + :param kwargs: see the ``clone`` method :return: Repo instance pointing to the cloned directory""" return cls._clone(Git(os.getcwd()), url, to_path, GitCmdObjectDB, **kwargs) -- cgit v1.2.1