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

Method format_compare_against

modules/handler.py:271–276  ·  view source on GitHub ↗

Format the compare against setting to use for display.

(self)

Source from the content-addressed store, hash-verified

269 view.run_command('git_gutter')
270
271 def format_compare_against(self):
272 """Format the compare against setting to use for display."""
273 comparing = self.get_compare_against()
274 for repl in ('refs/heads/', 'refs/remotes/', 'refs/tags/'):
275 comparing = comparing.replace(repl, '')
276 return comparing
277
278 def in_repo(self):
279 """Return true, if the most recent `git show` returned any content.

Callers 2

update_git_statusMethod · 0.80
show_compareFunction · 0.80

Calls 1

get_compare_againstMethod · 0.95

Tested by

no test coverage detected