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

Method _update_status

modules/show_diff.py:104–120  ·  view source on GitHub ↗

Update status message. Arguments: file_state (string): The git status of the open file. contents (tuble): The result of git_handler.diff(), with the information about the modifications of the file. Scheme: (first, last, [inserted], [mo

(self, file_state, contents)

Source from the content-addressed store, hash-verified

102 self._busy = False
103
104 def _update_status(self, file_state, contents):
105 """Update status message.
106
107 Arguments:
108 file_state (string): The git status of the open file.
109 contents (tuble): The result of git_handler.diff(), with the
110 information about the modifications of the file.
111 Scheme: (first, last, [inserted], [modified], [deleted])
112 """
113 if self.status_bar.is_enabled():
114 _, _, inserted, modified, deleted = contents
115 self.status_bar.update(
116 state=file_state,
117 deleted=len(deleted),
118 inserted=len(inserted),
119 modified=len(modified),
120 )
121
122 def _contents_to_regions(self, contents):
123 """Convert the diff contents to gutter regions.

Callers 3

bind_untrackedMethod · 0.95
_update_uiMethod · 0.95

Calls 2

is_enabledMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected