summaryrefslogtreecommitdiff
path: root/lib/git/repo.py
diff options
context:
space:
mode:
authorKai Lautaportti <kai.lautaportti@hexagonit.fi>2008-09-12 22:44:31 +0300
committerKai Lautaportti <kai.lautaportti@hexagonit.fi>2008-09-12 22:44:31 +0300
commitd7781e1056c672d5212f1aaf4b81ba6f18e8dd8b (patch)
tree765d2cc43cb13ae3f012fe46db3ca8910ed0149e /lib/git/repo.py
parent125b4875b5035dc4f6bad4351651a4236b82baeb (diff)
downloadgitpython-d7781e1056c672d5212f1aaf4b81ba6f18e8dd8b.tar.gz
Cosmetic fixes to be consistent with the overall coding style.
Diffstat (limited to 'lib/git/repo.py')
-rw-r--r--lib/git/repo.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/git/repo.py b/lib/git/repo.py
index ef440cd1..aaa7cecc 100644
--- a/lib/git/repo.py
+++ b/lib/git/repo.py
@@ -443,18 +443,19 @@ class Repo(object):
@property
def is_dirty(self):
- """Returns the status of the working directory.
-
+ """
+ Return the status of the working directory.
+
Returns
``True``, if the working directory has any uncommitted changes,
otherwise ``False``
-
+
"""
if self.bare:
# Bare repositories with no associated working directory are
# always consired to be clean.
return False
-
+
return len(self.git.diff('HEAD').strip()) > 0
def __repr__(self):