|
2 | 2 |
|
3 | 3 | A Rust library for Git repository operations with a clean, type-safe API. |
4 | 4 |
|
| 5 | + |
| 6 | +[](https://crates.io/crates/rustic-git) |
| 7 | +[](https://crates.io/crates/rustic-git) |
| 8 | +[](https://docs.rs/rustic-git) |
| 9 | + |
| 10 | +[](LICENSE) |
| 11 | +[](https://deps.rs/repo/github/eugener/rustic-git) |
| 12 | + |
5 | 13 | ## Overview |
6 | 14 |
|
7 | 15 | 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<()> { |
717 | 725 |
|
718 | 726 | // Configure git user for commits |
719 | 727 | repo.config() .set_user( "Your Name", "[email protected]") ?; |
720 | | - |
| 728 | + |
721 | 729 | // Set some additional repository settings |
722 | 730 | repo.config().set("core.autocrlf", "false")?; |
723 | 731 | repo.config().set("pull.rebase", "true")?; |
@@ -798,7 +806,7 @@ fn main() -> rustic_git::Result<()> { |
798 | 806 | // Display final configuration |
799 | 807 | let (user_name, user_email) = repo.config().get_user()?; |
800 | 808 | println!("Repository configured for: {} <{}>", user_name, user_email); |
801 | | - |
| 809 | + |
802 | 810 | let autocrlf = repo.config().get("core.autocrlf")?; |
803 | 811 | let rebase_setting = repo.config().get("pull.rebase")?; |
804 | 812 | println!("Settings: autocrlf={}, pull.rebase={}", autocrlf, rebase_setting); |
|
0 commit comments