Compare commits
1 Commits
v0.1.5-alp
...
v0.1.6-alp
Author | SHA1 | Date | |
---|---|---|---|
65b1daa52c
|
4
api.go
4
api.go
@ -134,6 +134,10 @@ func (a *Agate) SaveSnapshot(ctx context.Context, name string, parentID string)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If parentID is not provided, use the current snapshot ID
|
// If parentID is not provided, use the current snapshot ID
|
||||||
|
if parentID == "" {
|
||||||
|
parentID = a.currentSnapshotID
|
||||||
|
}
|
||||||
|
|
||||||
effectiveParentID := parentID
|
effectiveParentID := parentID
|
||||||
|
|
||||||
// Create the snapshot
|
// Create the snapshot
|
||||||
|
Reference in New Issue
Block a user