Support to list snapshot

This commit is contained in:
WQY\qiong
2023-03-03 20:40:05 +08:00
parent bb3cd2bb7f
commit dde045b6b8
3 changed files with 12 additions and 0 deletions

View File

@@ -173,6 +173,9 @@ def execute_undo(name: str, discard: bool = False) -> ChangeSet:
def execute_redo(name: str) -> ChangeSet:
return api.execute_redo(name)
def list_snapshot(name: str) -> list[tuple[int, str]]:
return api.list_snapshot(name)
def have_snapshot(name: str, tag: str) -> bool:
return api.have_snapshot(name, tag)