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

Method bind_ignored_or_untracked

modules/show_diff.py:65–77  ·  view source on GitHub ↗
(is_ignored)

Source from the content-addressed store, hash-verified

63 'show_markers_on_untracked_file', False)
64
65 def bind_ignored_or_untracked(is_ignored):
66 if is_ignored:
67 event = 'ignored'
68 self._update_status(event, (0, 0, [], [], []))
69 if show_untracked:
70 self._bind_files(event)
71 else:
72 def bind_untracked(is_untracked):
73 event = 'untracked' if is_untracked else 'inserted'
74 self._update_status(event, (0, 0, [], [], []))
75 if show_untracked:
76 self._bind_files(event)
77 self.git_handler.untracked().then(bind_untracked)
78 self.git_handler.ignored().then(bind_ignored_or_untracked)
79 else:
80 self._update_ui(contents)

Callers

nothing calls this directly

Calls 4

_update_statusMethod · 0.95
_bind_filesMethod · 0.95
thenMethod · 0.80
untrackedMethod · 0.80

Tested by

no test coverage detected