automated snapshot

This commit is contained in:
sumi
2025-12-15 01:49:00 -06:00
parent 2ba6a7c253
commit 80b59f4e82

View File

@@ -104,7 +104,11 @@ func (s *Storage) Save() (string, error) {
if err != nil {
s.log.Printf("Error getting working tree in a known clean state: %v", err)
} else {
s.log.Printf("Created commit %s on %s for snapshot %s", hash, branch, kid)
if committed {
s.log.Printf("Created commit %s on %s for snapshot %s", hash, branch, kid)
} else {
s.log.Printf("Referencing commit %s on %s for snapshot %s", hash, branch, kid)
}
}
_, err = s.db.Exec(`