Configure the committer identity

Description

Set or read the 'user.name' / 'user.email' used by [dolt_commit()], [dolt_merge()], [dolt_cherry_pick()] and [dolt_revert()].

Usage

dolt_config(con, key = NULL, value = NULL, user.name = NULL, user.email = NULL)

Arguments

Details

Configuration is **per connection** and is not persisted. Set it after connecting, on every connection that will commit.

Value

When reading, the value. When setting, invisibly 'TRUE'.

Examples

con <- DBI::dbConnect(doltliter::Doltlite(), tempfile())
dolt_config(con, user.name = "Ada Lovelace", user.email = "ada@example.com")
dolt_config(con, "user.name")
#> [1] "Ada Lovelace"
DBI::dbDisconnect(con)