equal
deleted
inserted
replaced
716 |
716 |
717 def dirty(self): |
717 def dirty(self): |
718 if self._state[1] != self._gitstate(): # version checked out changed? |
718 if self._state[1] != self._gitstate(): # version checked out changed? |
719 return True |
719 return True |
720 # check for staged changes or modified files; ignore untracked files |
720 # check for staged changes or modified files; ignore untracked files |
721 status = self._gitcommand(['status']) |
721 out, code = self._gitdir(['diff-index', '--quiet', 'HEAD']) |
722 return ('\n# Changed but not updated:' in status or |
722 return code == 1 |
723 '\n# Changes to be committed:' in status) |
|
724 |
723 |
725 def get(self, state): |
724 def get(self, state): |
726 source, revision, kind = state |
725 source, revision, kind = state |
727 self._fetch(source, revision) |
726 self._fetch(source, revision) |
728 # if the repo was set to be bare, unbare it |
727 # if the repo was set to be bare, unbare it |