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

Method get

modules/settings.py:98–112  ·  view source on GitHub ↗

Get a setting from attached view or GitGutter settings. Arguments: key (string): The setting to read. default (any): The default value to return if the setting does not exist in the view or GitGutter settings. Returns: any: The re

(self, key, default=None)

Source from the content-addressed store, hash-verified

96 self._theme_path = ''
97
98 def get(self, key, default=None):
99 """Get a setting from attached view or GitGutter settings.
100
101 Arguments:
102 key (string): The setting to read.
103 default (any): The default value to return if the setting does
104 not exist in the view or GitGutter settings.
105
106 Returns:
107 any: The read value or default.
108 """
109 result = self._settings.get('git_gutter_' + key)
110 if result is not None:
111 return result
112 return get(key, default)
113
114 @property
115 def show_in_minimap(self):

Callers 15

show_in_minimapMethod · 0.95
theme_pathMethod · 0.95
ignore_whitespaceMethod · 0.95
diff_algorithmMethod · 0.95
runMethod · 0.80
__init__Method · 0.80
is_enabledMethod · 0.80
next_changeFunction · 0.80
prev_changeFunction · 0.80
_goto_changeFunction · 0.80
on_hoverMethod · 0.80

Calls 1

getFunction · 0.85

Tested by

no test coverage detected