From 7bfca5efce8988e6070e7284bd409d1a731a3fbc Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Sat, 20 Mar 2010 11:45:58 -0400 Subject: Many small doc changes pulled in from the 0.1.7RC branch. --- lib/git/commit.py | 4 ++-- lib/git/repo.py | 6 +++--- lib/git/tree.py | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'lib/git') diff --git a/lib/git/commit.py b/lib/git/commit.py index 591fb38b..b074d3a8 100644 --- a/lib/git/commit.py +++ b/lib/git/commit.py @@ -115,7 +115,7 @@ class Commit(LazyMixin): is the ref from which to begin (SHA1 or name) ``path`` - is an optinal path + is an optional path Returns int @@ -212,7 +212,7 @@ class Commit(LazyMixin): git.Diff[]:: between tree and the index if only a is given - between two trees if a and b are given and are commits + between two trees if a and b are given and are commits """ paths = paths or [] diff --git a/lib/git/repo.py b/lib/git/repo.py index 3490499c..cfc0913d 100644 --- a/lib/git/repo.py +++ b/lib/git/repo.py @@ -161,11 +161,11 @@ class Repo(object): is the branch/commit name (default 'master') ``path`` - is an optinal path to limit the returned commits to. + is an optional path to limit the returned commits to. ``since`` - is a string represeting a date/time + is a string representing a date/time Returns ``git.Commit[]`` @@ -494,7 +494,7 @@ class Repo(object): """ if self.bare: # Bare repositories with no associated working directory are - # always consired to be clean. + # always considered to be clean. return False return len(self.git.diff('HEAD', '--').strip()) > 0 diff --git a/lib/git/tree.py b/lib/git/tree.py index aaeca828..02266dce 100644 --- a/lib/git/tree.py +++ b/lib/git/tree.py @@ -64,9 +64,9 @@ class Tree(LazyMixin): Examples:: - >>> Repo('/path/to/python-git').tree/'lib' + >>> Repo('/path/to/python-git').tree()/'lib' - >>> Repo('/path/to/python-git').tree/'README.txt' + >>> Repo('/path/to/python-git').tree()/'README' Returns -- cgit v1.2.1