summaryrefslogtreecommitdiff
path: root/lib/git
diff options
context:
space:
mode:
authorMichael Trier <mtrier@gmail.com>2010-03-20 11:45:58 -0400
committerMichael Trier <mtrier@gmail.com>2010-03-20 11:45:58 -0400
commit7bfca5efce8988e6070e7284bd409d1a731a3fbc (patch)
tree6f44db816731fd2d698a27d1ca34e5c207eac615 /lib/git
parente3e2c8c14b861b4d4865a9574e812ef9f2609771 (diff)
downloadgitpython-7bfca5efce8988e6070e7284bd409d1a731a3fbc.tar.gz
Many small doc changes pulled in from the 0.1.7RC branch.0.1.7
Diffstat (limited to 'lib/git')
-rw-r--r--lib/git/commit.py4
-rw-r--r--lib/git/repo.py6
-rw-r--r--lib/git/tree.py4
3 files changed, 7 insertions, 7 deletions
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'
<git.Tree "6cc23ee138be09ff8c28b07162720018b244e95e">
- >>> Repo('/path/to/python-git').tree/'README.txt'
+ >>> Repo('/path/to/python-git').tree()/'README'
<git.Blob "8b1e02c0fb554eed2ce2ef737a68bb369d7527df">
Returns