22 lines
615 B
Rust
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);
|
|
}
|