MCPcopy Create free account
hub / github.com/chubin/cheat.sh / get_updates_list_command

Method get_updates_list_command

lib/adapter/git_adapter.py:160–168  ·  view source on GitHub ↗

Return list of updates since the last update whose id is saved as the repository state. The list is used to invalidate the cache.

(cls)

Source from the content-addressed store, hash-verified

158
159 @classmethod
160 def get_updates_list_command(cls):
161 """
162 Return list of updates since the last update whose id is saved as the repository state.
163 The list is used to invalidate the cache.
164 """
165 current_state = cls.get_state()
166 if not current_state:
167 return ["git", "ls-tree", "--full-tree", "-r", "--name-only", "HEAD", "--"]
168 return ["git", "diff", "--name-only", current_state, "HEAD", "--"]

Callers

nothing calls this directly

Calls 1

get_stateMethod · 0.45

Tested by

no test coverage detected