Skip to content

Commit 0bd473c

Browse files
committed
chore: Add badges for build, crates.io, docs, and license to README
1 parent f1c35d6 commit 0bd473c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
A Rust library for Git repository operations with a clean, type-safe API.
44

5+
![Build](https://github.com/eugener/rustic-git/actions/workflows/ci.yml/badge.svg)
6+
[![Crates.io](https://img.shields.io/crates/v/rustic-git.svg)](https://crates.io/crates/rustic-git)
7+
[![Downloads](https://img.shields.io/crates/d/rustic-git.svg)](https://crates.io/crates/rustic-git)
8+
[![Docs.rs](https://docs.rs/rustic-git/badge.svg)](https://docs.rs/rustic-git)
9+
![Rust Version](https://img.shields.io/badge/rustc-1.89+-blue.svg)
10+
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
11+
[![dependency status](https://deps.rs/repo/github/eugener/rustic-git/status.svg)](https://deps.rs/repo/github/eugener/rustic-git)
12+
513
## Overview
614

715
Rustic Git provides a simple, ergonomic interface for common Git operations. It follows a repository-centric design where you create a `Repository` instance and call methods on it to perform Git operations.
@@ -717,7 +725,7 @@ fn main() -> rustic_git::Result<()> {
717725

718726
// Configure git user for commits
719727
repo.config().set_user("Your Name", "[email protected]")?;
720-
728+
721729
// Set some additional repository settings
722730
repo.config().set("core.autocrlf", "false")?;
723731
repo.config().set("pull.rebase", "true")?;
@@ -798,7 +806,7 @@ fn main() -> rustic_git::Result<()> {
798806
// Display final configuration
799807
let (user_name, user_email) = repo.config().get_user()?;
800808
println!("Repository configured for: {} <{}>", user_name, user_email);
801-
809+
802810
let autocrlf = repo.config().get("core.autocrlf")?;
803811
let rebase_setting = repo.config().get("pull.rebase")?;
804812
println!("Settings: autocrlf={}, pull.rebase={}", autocrlf, rebase_setting);

0 commit comments

Comments
 (0)