You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An optional third argument was added to `reset_branch`:
```python
def reset_branch(self, branch: str, snapshot_id: str, *, from_snapshot_id: str | None = None) -> None:
```
If `from_snapshot_id` is passed, the operation raises an exception and
leaves the branch untouched if it's not currently pointing to that
snapshot id.
At this point, the tip of the branch is now the snapshot `198273178639187` and any changes made to the branch will be based on this snapshot. This also means the history of the branch is now same as the ancestry of this snapshot.
75
+
74
76
!!! warning
75
77
This is a destructive operation. It will overwrite the branch reference with the snapshot immediately. It can only be undone by resetting the branch again.
76
78
77
-
At this point, the tip of the branch is now the snapshot `198273178639187` and any changes made to the branch will be based on this snapshot. This also means the history of the branch is now same as the ancestry of this snapshot.
79
+
To make `reset_branch` less dangerous, you can pass an optional third argument, the snapshot id currently pointed
0 commit comments