MCPcopy
hub / github.com/jisaacks/GitGutter / invalidate

Method invalidate

modules/view.py:83–92  ·  view source on GitHub ↗

Reset change_count and force writing the view cache file. The view content is written to a temporary file for use with git diff, if the view.change_count() has changed. This method forces the update on the next call of update_view_file().

(self)

Source from the content-addressed store, hash-verified

81 return self._text
82
83 def invalidate(self):
84 """Reset change_count and force writing the view cache file.
85
86 The view content is written to a temporary file for use with git diff,
87 if the view.change_count() has changed. This method forces the update
88 on the next call of update_view_file().
89 """
90 self._change_count = -1
91 self._size = None
92 self._text = None
93
94 def is_changed(self):
95 """Check whether the content of the view changed."""

Callers 2

updateMethod · 0.95
is_enabledMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected