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

Method trim_path

src/git_sim/git_sim_base_command.py:1193–1194  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

1191 self.prevRef = refRec
1192
1193 def trim_path(self, path):
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

Callers 5

create_zone_textMethod · 0.95
create_zone_textMethod · 0.80
create_zone_textMethod · 0.80
rename_moved_fileMethod · 0.80
create_zone_textMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected