11# commit.py
2- # Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
2+ # Copyright (C) 2008-2010 Michael Trier (mtrier@gmail.com) and contributors
33#
44# This module is part of GitPython and is released under
55# the BSD License: http://www.opensource.org/licenses/bsd-license.php
1616class Commit (LazyMixin ):
1717"""
1818 Wraps a git Commit object.
19-
20- This class will act lazily on some of its attributes and will query the
19+
20+ This class will act lazily on some of its attributes and will query the
2121 value on demand only if it involves calling the git binary.
2222 """
2323def __init__ (self ,repo ,id ,tree = None ,author = None ,authored_date = None ,
2424committer = None ,committed_date = None ,message = None ,parents = None ):
2525"""
26- Instantiate a new Commit. All keyword arguments taking None as default will
27- be implicitly set if id names a valid sha.
28-
26+ Instantiate a new Commit. All keyword arguments taking None as default will
27+ be implicitly set if id names a valid sha.
28+
2929 The parameter documentation indicates the type of the argument after a colon ':'.
3030
3131 ``id``
@@ -75,7 +75,7 @@ def __init__(self, repo, id, tree=None, author=None, authored_date=None,
7575
7676def __bake__ (self ):
7777"""
78- Called by LazyMixin superclass when the first uninitialized member needs
78+ Called by LazyMixin superclass when the first uninitialized member needs
7979 to be set as it is queried.
8080 """
8181temp = Commit .find_all (self .repo ,self .id ,max_count = 1 )[0 ]
@@ -133,7 +133,7 @@ def find_all(cls, repo, ref, path='', **kwargs):
133133 is the ref from which to begin (SHA1 or name)
134134
135135 ``path``
136- is an optinal path, if set only Commits that include the path
136+ is an optinal path, if set only Commits that include the path
137137 will be considered
138138
139139 ``kwargs``
@@ -210,9 +210,9 @@ def diff(cls, repo, a, b=None, paths=None):
210210
211211 Returns
212212 git.Diff[]::
213-
213+
214214 between tree and the index if only a is given
215- between two trees if a and b are given and are commits
215+ between two trees if a and b are given and are commits
216216 """
217217paths = paths or []
218218
@@ -234,7 +234,7 @@ def diffs(self):
234234"""
235235 Returns
236236 git.Diff[]
237- Diffs between this commit and its first parent or all changes if this
237+ Diffs between this commit and its first parent or all changes if this
238238 commit is the first commit and has no parent.
239239 """
240240if not self .parents :
@@ -252,9 +252,9 @@ def diffs(self):
252252@property
253253def stats (self ):
254254"""
255- Create a git stat from changes between this commit and its first parent
255+ Create a git stat from changes between this commit and its first parent
256256 or from all changes done if this is the very first commit.
257-
257+
258258 Return
259259 git.Stats
260260 """