| Crates.io | workspacer-git-commit |
| lib.rs | workspacer-git-commit |
| version | 0.1.2 |
| created_at | 2025-04-01 21:34:37.664032+00 |
| updated_at | 2025-04-01 21:34:37.664032+00 |
| description | A Rust crate to streamline the creation and management of Git commits in applications, simplifying version control processes with easy-to-use abstractions. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1615626 |
| size | 140,682 |
workspacer-git-commit is a Rust crate designed to facilitate interaction with Git repositories through programmatic commit operations. This crate abstracts the complexities of creating and managing Git commits, providing a streamlined interface for handling commit creation in applications with a need for robust version control integration.
Add workspacer-git-commit to your Cargo.toml:
[dependencies]
workspacer-git-commit = "0.1.0"
Import the crate into your project:
use workspacer_git_commit::{CommitBuilder, CommitError};
fn main() -> Result<(), CommitError> {
let commit = CommitBuilder::new()
.message("Initial commit")
.author("Jane Doe", "jane@example.com")
.create()?;
println!("Commit created: {}", commit.id());
Ok(())
}
Git is a distributed version control system that tracks changes in source code during software development. This crate interfaces with Git to abstract and automate commit operations, enhancing developer productivity by enabling seamless integration into complex Rust applications.
This crate is licensed under the MIT License. See LICENSE for more details.