diff options
author | Michael Trier <mtrier@gmail.com> | 2010-03-03 23:46:23 -0500 |
---|---|---|
committer | Michael Trier <mtrier@gmail.com> | 2010-03-03 23:46:23 -0500 |
commit | e3e2c8c14b861b4d4865a9574e812ef9f2609771 (patch) | |
tree | c71c7da3843389ea3b7041a0200d7abe3b0e580d /lib/git/commit.py | |
parent | acb0fa8b94ef421ad60c8507b634759a472cd56c (diff) | |
download | gitpython-e3e2c8c14b861b4d4865a9574e812ef9f2609771.tar.gz |
Corrected a bunch of whitespace that makes some folks crazy. Added Sebastian to the AUTHORS file.
Diffstat (limited to 'lib/git/commit.py')
-rw-r--r-- | lib/git/commit.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/git/commit.py b/lib/git/commit.py index 1cb863ca..591fb38b 100644 --- a/lib/git/commit.py +++ b/lib/git/commit.py @@ -1,5 +1,5 @@ # commit.py -# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors +# Copyright (C) 2008-2010 Michael Trier (mtrier@gmail.com) and contributors # # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php @@ -16,16 +16,16 @@ import stats class Commit(LazyMixin): """ Wraps a git Commit object. - - This class will act lazily on some of its attributes and will query the + + This class will act lazily on some of its attributes and will query the value on demand only if it involves calling the git binary. """ def __init__(self, repo, id, tree=None, author=None, authored_date=None, committer=None, committed_date=None, message=None, parents=None): """ - Instantiate a new Commit. All keyword arguments taking None as default will - be implicitly set if id names a valid sha. - + Instantiate a new Commit. All keyword arguments taking None as default will + be implicitly set if id names a valid sha. + The parameter documentation indicates the type of the argument after a colon ':'. ``id`` @@ -75,7 +75,7 @@ class Commit(LazyMixin): def __bake__(self): """ - Called by LazyMixin superclass when the first uninitialized member needs + Called by LazyMixin superclass when the first uninitialized member needs to be set as it is queried. """ temp = Commit.find_all(self.repo, self.id, max_count=1)[0] @@ -133,7 +133,7 @@ class Commit(LazyMixin): is the ref from which to begin (SHA1 or name) ``path`` - is an optinal path, if set only Commits that include the path + is an optinal path, if set only Commits that include the path will be considered ``kwargs`` @@ -210,9 +210,9 @@ class Commit(LazyMixin): Returns 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 [] @@ -234,7 +234,7 @@ class Commit(LazyMixin): """ Returns git.Diff[] - Diffs between this commit and its first parent or all changes if this + Diffs between this commit and its first parent or all changes if this commit is the first commit and has no parent. """ if not self.parents: @@ -252,9 +252,9 @@ class Commit(LazyMixin): @property def stats(self): """ - Create a git stat from changes between this commit and its first parent + Create a git stat from changes between this commit and its first parent or from all changes done if this is the very first commit. - + Return git.Stats """ |