Skip to main content

set_config

Function set_config 

Source
pub fn set_config(
    repo: &Repository,
    key: &str,
    value: &str,
) -> Result<(), String>
Expand description

Set a config key in the repo’s local config.

Appends to the git config file directly. This is a simple append-based writer that works correctly because git reads the last value for duplicate keys.