MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / commit_log

Method commit_log

tests/session_suite/git_backfill.rs:149–165  ·  view source on GitHub ↗
(&self, _worktree: &Path, branch: &str, since: i64)

Source from the content-addressed store, hash-verified

147 }
148
149 fn commit_log(&self, _worktree: &Path, branch: &str, since: i64) -> Option<String> {
150 // Delegate to the real repo so commit shas/times are authentic.
151 let out = Command::new(common::git_program())
152 .args([
153 "log",
154 branch,
155 "--pretty=%H %ct",
156 &format!("--since={since}"),
157 ])
158 .current_dir(&self.real_repo)
159 .output()
160 .ok()?;
161 if !out.status.success() {
162 return None;
163 }
164 String::from_utf8(out.stdout).ok()
165 }
166}
167
168async fn open_seeded_db(repo: &Path) -> (TempDir, GlobalDb, String) {

Callers

nothing calls this directly

Calls 3

outputMethod · 0.80
successMethod · 0.80
git_programFunction · 0.50

Tested by

no test coverage detected