diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-05-21 12:32:41 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-05-21 16:21:29 +0100 |
| commit | d64748b810bf64638a5eb71eac054d91dae0c0f1 (patch) | |
| tree | 784412c5f0a7b701cb63d40d2fbaf84694a333d2 /src/bin/ngit/sub_commands/list.rs | |
| parent | 7abd469db87388463187c3a5a9d5b3fe73ffee06 (diff) | |
feat: add support for default relay overrides
via git config so they can be overwritten locally and globally
Diffstat (limited to 'src/bin/ngit/sub_commands/list.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/list.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/ngit/sub_commands/list.rs b/src/bin/ngit/sub_commands/list.rs index e8d2e97..2c91e66 100644 --- a/src/bin/ngit/sub_commands/list.rs +++ b/src/bin/ngit/sub_commands/list.rs | |||
| @@ -2,7 +2,9 @@ use std::{io::Write, ops::Add}; | |||
| 2 | 2 | ||
| 3 | use anyhow::{Context, Result, bail}; | 3 | use anyhow::{Context, Result, bail}; |
| 4 | use ngit::{ | 4 | use ngit::{ |
| 5 | client::{get_all_proposal_patch_events_from_cache, get_proposals_and_revisions_from_cache}, | 5 | client::{ |
| 6 | Params, get_all_proposal_patch_events_from_cache, get_proposals_and_revisions_from_cache, | ||
| 7 | }, | ||
| 6 | git_events::{ | 8 | git_events::{ |
| 7 | get_commit_id_from_patch, get_most_recent_patch_with_ancestors, status_kinds, tag_value, | 9 | get_commit_id_from_patch, get_most_recent_patch_with_ancestors, status_kinds, tag_value, |
| 8 | }, | 10 | }, |
| @@ -31,7 +33,7 @@ pub async fn launch() -> Result<()> { | |||
| 31 | // TODO: check for existing maintaiers file | 33 | // TODO: check for existing maintaiers file |
| 32 | // TODO: check for other claims | 34 | // TODO: check for other claims |
| 33 | 35 | ||
| 34 | let client = Client::default(); | 36 | let client = Client::new(Params::with_git_config_relay_defaults(&Some(&git_repo))); |
| 35 | 37 | ||
| 36 | let repo_coordinates = get_repo_coordinates_when_remote_unknown(&git_repo, &client).await?; | 38 | let repo_coordinates = get_repo_coordinates_when_remote_unknown(&git_repo, &client).await?; |
| 37 | 39 | ||