feat(dolt): auto-commit write commands and set explicit commit authors (#1270)
Adds Dolt auto-commit functionality for write commands and sets explicit commit authors. Includes fix for race condition in commandDidWrite (converted to atomic.Bool). Original PR: #1267 by @coffeegoddd Co-authored-by: Dustin Brown <dustin@dolthub.com>
This commit is contained in:
@@ -131,6 +131,8 @@ Examples:
|
||||
FatalErrorRespectJSON("commit requires Dolt backend (current backend does not support versioning)")
|
||||
}
|
||||
|
||||
// We are explicitly creating a Dolt commit; avoid redundant auto-commit in PersistentPostRun.
|
||||
commandDidExplicitDoltCommit = true
|
||||
if err := vs.Commit(ctx, vcCommitMessage); err != nil {
|
||||
FatalErrorRespectJSON("failed to commit: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user