MCPcopy
hub / github.com/catppuccin/catppuccin / svn_diff_command

Method svn_diff_command

samples/python1.py:333–347  ·  view source on GitHub ↗
(self, file_name)

Source from the content-addressed store, hash-verified

331 return [get_user_command('git') or 'git', 'diff'] + vcs_options + ['--', file_name]
332
333 def svn_diff_command(self, file_name):
334 params = [get_user_command('svn') or 'svn', 'diff']
335 params.extend(self.settings.get('vcs_options', {}).get('svn', []))
336
337 if '--internal-diff' not in params and self.settings.get('svn_use_internal_diff', True):
338 params.append('--internal-diff')
339
340 # if file starts with @, use `--revision HEAD` option
341 # https://github.com/gornostal/Modific/issues/17
342 if file_name.find('@') != -1:
343 file_name += '@'
344 params.extend(['--revision', 'HEAD'])
345
346 params.append(file_name)
347 return params
348
349 def bzr_diff_command(self, file_name):
350 vcs_options = self.settings.get('vcs_options', {}).get('bzr', [])

Callers

nothing calls this directly

Calls 1

get_user_commandFunction · 0.85

Tested by

no test coverage detected