diff --git a/storage.go b/storage.go index 3d2a3c2..a31d279 100644 --- a/storage.go +++ b/storage.go @@ -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(`