add debug

This commit is contained in:
Pakin 2025-09-08 15:59:15 +07:00
parent ad677d22ce
commit ddc7403e8d

View file

@ -298,11 +298,19 @@ impl XBuilder {
match git_res {
Ok(repo) => {
let mut revwalk = repo.revwalk().expect("Failed to create revwalk");
println!("revwalk ok");
for cid in revwalk {
let commit_id = cid.expect("Failed to get commit id");
let commit = repo.find_commit(commit_id).expect("Failed to find commit");
let commit_time = commit.time();
println!(
"{}: {} > {} == {}",
commit.id(),
commit_time.seconds(),
last_build_from_base,
commit_time.seconds() >= last_build_from_base
);
if commit_time.seconds() >= last_build_from_base {
println!(
"Commit {} [{}]",