Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 125b487 commit d7781e1Copy full SHA for d7781e1
lib/git/repo.py
@@ -443,18 +443,19 @@ def _set_alternates(self, alts):
443
444
@property
445
def is_dirty(self):
446
- """Returns the status of the working directory.
447
-
+ """
+ Return the status of the working directory.
448
+
449
Returns
450
``True``, if the working directory has any uncommitted changes,
451
otherwise ``False``
452
453
"""
454
if self.bare:
455
# Bare repositories with no associated working directory are
456
# always consired to be clean.
457
return False
458
459
return len(self.git.diff('HEAD').strip()) > 0
460
461
def __repr__(self):
0 commit comments