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

Function rev_list

tests/session_suite/git_backfill.rs:73–85  ·  view source on GitHub ↗
(repo: &Path, branch: &str)

Source from the content-addressed store, hash-verified

71}
72
73fn rev_list(repo: &Path, branch: &str) -> Vec<String> {
74 let out = Command::new(common::git_program())
75 .args(["rev-list", branch])
76 .current_dir(repo)
77 .output()
78 .unwrap_or_else(|e| panic!("rev-list {branch}: {e}"));
79 assert!(out.status.success(), "rev-list {branch} should succeed");
80 String::from_utf8(out.stdout)
81 .unwrap()
82 .lines()
83 .map(str::to_string)
84 .collect()
85}
86
87fn session(session_id: &str, project_path: &str, started: i64, ended: i64) -> SessionRecord {
88 SessionRecord {

Callers 1

build_repoFunction · 0.85

Calls 3

outputMethod · 0.80
collectMethod · 0.80
git_programFunction · 0.50

Tested by

no test coverage detected