Add sqlite for tracking build history.

This commit is contained in:
Tom Alexander
2026-02-14 22:15:09 -05:00
parent 0e0c5dac80
commit 7eb36ce0a4
16 changed files with 442 additions and 30 deletions

View File

@@ -15,7 +15,7 @@ where
let dest = AsRef::<OsStr>::as_ref(dest.as_ref());
command.arg("-C");
command.arg(dest);
command.args(&["init"]);
command.args(["init"]);
command.arg(format!("--initial-branch={}", branch.as_ref()));
command.kill_on_drop(true);
let output = command.output().await?;
@@ -43,7 +43,7 @@ where
let mut command = Command::new("git");
command.arg("-C");
command.arg(dest);
command.args(&["remote", "add"]);
command.args(["remote", "add"]);
command.arg(name);
command.arg(url);
command.kill_on_drop(true);
@@ -78,7 +78,7 @@ where
let mut command = Command::new("git");
command.arg("-C");
command.arg(dest);
command.args(&["fetch"]);
command.args(["fetch"]);
if let Some(d) = depth {
command.arg(format!("--depth={}", d));
}
@@ -118,7 +118,7 @@ where
let mut command = Command::new("git");
command.arg("-C");
command.arg(dest);
command.args(&["checkout"]);
command.args(["checkout"]);
if force {
command.arg("--force");
}
@@ -149,7 +149,7 @@ where
let mut command = Command::new("git");
command.arg("-C");
command.arg(dest);
command.args(&["remote", "get-url"]);
command.args(["remote", "get-url"]);
command.arg(remote.as_ref());
command.kill_on_drop(true);
let output = command.output().await?;
@@ -181,7 +181,7 @@ where
let mut command = Command::new("git");
command.arg("-C");
command.arg(dest);
command.args(&["reset"]);
command.args(["reset"]);
if hard {
command.arg("--hard");
}
@@ -213,7 +213,7 @@ where
let mut command = Command::new("git");
command.arg("-C");
command.arg(dest);
command.args(&["clean"]);
command.args(["clean"]);
if recurse_into_untracked_directories {
command.arg("-d");
}