refactor: 移除未使用的代码和注释掉的辅助函数

This commit is contained in:
2026-03-20 18:05:33 +08:00
parent 0289dd4684
commit 0c7d2ad518
6 changed files with 123 additions and 118 deletions

View File

@@ -642,12 +642,16 @@ impl GitRepo {
name: name.to_string(),
target: oid.to_string(),
message: commit.message().unwrap_or("").to_string(),
time: commit.time().seconds(),
});
}
true
})?;
// Sort tags by time (newest first)
tags.sort_by(|a, b| b.time.cmp(&a.time));
Ok(tags)
}
@@ -832,6 +836,7 @@ pub struct TagInfo {
pub name: String,
pub target: String,
pub message: String,
pub time: i64,
}
/// Repository status summary