From d7781e1056c672d5212f1aaf4b81ba6f18e8dd8b Mon Sep 17 00:00:00 2001 From: Kai Lautaportti Date: Fri, 12 Sep 2008 22:44:31 +0300 Subject: Cosmetic fixes to be consistent with the overall coding style. --- lib/git/repo.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/git/repo.py') 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): -- cgit v1.2.1