diff options
author | Kai Lautaportti <kai.lautaportti@hexagonit.fi> | 2008-09-12 22:44:31 +0300 |
---|---|---|
committer | Kai Lautaportti <kai.lautaportti@hexagonit.fi> | 2008-09-12 22:44:31 +0300 |
commit | d7781e1056c672d5212f1aaf4b81ba6f18e8dd8b (patch) | |
tree | 765d2cc43cb13ae3f012fe46db3ca8910ed0149e /lib/git/repo.py | |
parent | 125b4875b5035dc4f6bad4351651a4236b82baeb (diff) | |
download | gitpython-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.py | 9 |
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): |