gitdataai/libs/service/git_tools/mod.rs
ZhenYi 5579e6c58e feat(backend): add git_tools service module
Add git_tools module with Git operations: branch, commit, diff, tag, tree, types, ctx
2026-04-18 19:08:06 +08:00

22 lines
615 B
Rust

//! Git tools for AI agent function calling.
//!
//! Each module defines async exec functions + a `register_git_tools()` call.
//! All tools take `project_name` + `repo_name` as required params.
pub mod branch;
pub mod commit;
pub mod ctx;
pub mod diff;
pub mod tag;
pub mod tree;
pub mod types;
/// Batch-register all git tools into a ToolRegistry.
pub fn register_all(registry: &mut agent::ToolRegistry) {
commit::register_git_tools(registry);
branch::register_git_tools(registry);
diff::register_git_tools(registry);
tree::register_git_tools(registry);
tag::register_git_tools(registry);
}