diff options
| author | Mica White <botahamec@outlook.com> | 2026-03-30 21:06:31 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2026-03-30 21:06:31 -0400 |
| commit | 6495268f002e1eeb27d13c58eec34ac4fa9b4ee6 (patch) | |
| tree | 6ee642663b614eb9b469b0a4f6771a2e88f547fc /src/bin/git-init-autosave.rs | |
| parent | e5692c42d3f2323cba6f10a4fc1e98b60507df51 (diff) | |
Refactor out config type
Diffstat (limited to 'src/bin/git-init-autosave.rs')
| -rw-r--r-- | src/bin/git-init-autosave.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/git-init-autosave.rs b/src/bin/git-init-autosave.rs index 8e72a9e..77ee4e4 100644 --- a/src/bin/git-init-autosave.rs +++ b/src/bin/git-init-autosave.rs @@ -1,11 +1,11 @@ -use git_autosave::{init, load_config, save_config}; +use git_autosave::{Config, init}; use git2::Repository; fn main() -> Result<(), anyhow::Error> { let repository = Repository::discover(".")?; - let mut config = load_config()?; + let mut config = Config::load()?; let id = init(&repository, Some(&mut config))?; - save_config(&config)?; + config.save()?; println!("Initialized autosave for repository: {id}"); |
