##// END OF EJS Templates
subrepo: support ignoreupdate in gitsubrepo's dirty()
Eric Eisner -
r13179:b512a707 default
parent child Browse files
Show More
@@ -727,8 +727,9 b' class gitsubrepo(abstractsubrepo):'
727 727 raise util.Abort(_("revision %s does not exist in subrepo %s\n") %
728 728 (revision, self._path))
729 729
730 def dirty(self):
731 if self._state[1] != self._gitstate(): # version checked out changed?
730 def dirty(self, ignoreupdate=False):
731 # version checked out changed?
732 if not ignoreupdate and self._state[1] != self._gitstate():
732 733 return True
733 734 # check for staged changes or modified files; ignore untracked files
734 735 out, code = self._gitdir(['diff-index', '--quiet', 'HEAD'])
General Comments 0
You need to be logged in to leave comments. Login now