summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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