Replace git2 with gix

main
trivernis 10 months ago
parent 57de734b44
commit 8d60c1ca07
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

1173
Cargo.lock generated

File diff suppressed because it is too large Load Diff

@ -14,7 +14,7 @@ clap = { version = "4.4.17", features = ["derive", "env"] }
dialoguer = "0.11.0"
dirs = "5.0.1"
figment = { version = "0.10.13", features = ["toml", "env"] }
git2 = "0.18.1"
gix = { version = "0.57.1", default-features = false, features = ["basic", "index", "worktree-mutation", "revision"] }
globset = { version = "0.4.14", features = ["serde", "serde1"] }
handlebars = "5.0.0"
handlebars_switch = "0.6.0"

@ -59,7 +59,7 @@ fn init(args: &Args) -> Result<()> {
.into_diagnostic()
.with_context(|| format!("creating folder for repository {:?}", args.repo))?;
}
let _gitrepo = git2::Repository::init(&args.repo)
let _gitrepo = gix::init(&args.repo)
.into_diagnostic()
.with_context(|| format!("initializing repository at {:?}", args.repo))?;
fs::write(args.repo.join(".gitignore"), "repo.local.toml\n")

Loading…
Cancel
Save