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)
| 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", "--"] |