MCPcopy Index your code
hub / github.com/initialcommit-com/git-sim / trim_cmd

Method trim_cmd

src/git_sim/git_sim_base_command.py:1196–1197  ·  view source on GitHub ↗
(self, path, length=30)

Source from the content-addressed store, hash-verified

1194 return f"{path[:15]}...{path[-15:]}" if len(path) > 33 else path
1195
1196 def trim_cmd(self, path, length=30):
1197 return f"{path[:length]}..." if len(path) > (length + 3) else path
1198
1199 def get_remote_tracking_branches(self):
1200 remote_refs = [remote.refs for remote in self.repo.remotes]

Callers 3

show_command_as_titleMethod · 0.95
add_detailsMethod · 0.80
add_detailsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected