Compare commits
2 Commits
163f142192
...
c97adefeb4
| Author | SHA1 | Date | |
|---|---|---|---|
| c97adefeb4 | |||
| 34662ff728 |
@@ -127,3 +127,7 @@ It requires nightly features due to the usage of [`std::path::Path::is_symlink()
|
||||
* [`serde`](https://docs.rs/serde/) because we're using Rust, after all
|
||||
* [`git2`](https://docs.rs/git2/), a safe wrapper around `libgit2`, for all git operations
|
||||
* [`clap`](https://docs.rs/clap/), [`console`](https://docs.rs/console/) and [`shellexpand`](https://docs.rs/shellexpand) for good UX
|
||||
|
||||
# Links
|
||||
|
||||
* [crates.io](https://crates.io/crates/git-repo-manager)
|
||||
|
||||
@@ -376,7 +376,7 @@ fn add_table_header(table: &mut Table) {
|
||||
]);
|
||||
}
|
||||
|
||||
fn add_repo_status(table: &mut Table, repo_name: &String, repo_handle: &git2::Repository) {
|
||||
fn add_repo_status(table: &mut Table, repo_name: &str, repo_handle: &git2::Repository) {
|
||||
let repo_status = get_repo_status(repo_handle);
|
||||
|
||||
table.add_row(vec![
|
||||
@@ -424,7 +424,7 @@ fn add_repo_status(table: &mut Table, repo_name: &String, repo_handle: &git2::Re
|
||||
]);
|
||||
}
|
||||
|
||||
fn show_single_repo_status(path: &PathBuf) {
|
||||
fn show_single_repo_status(path: &Path) {
|
||||
let mut table = Table::new();
|
||||
add_table_header(&mut table);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user