From d64748b810bf64638a5eb71eac054d91dae0c0f1 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 21 May 2025 12:32:41 +0100 Subject: feat: add support for default relay overrides via git config so they can be overwritten locally and globally --- src/bin/ngit/sub_commands/list.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/bin/ngit/sub_commands/list.rs') 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}; use anyhow::{Context, Result, bail}; use ngit::{ - client::{get_all_proposal_patch_events_from_cache, get_proposals_and_revisions_from_cache}, + client::{ + Params, get_all_proposal_patch_events_from_cache, get_proposals_and_revisions_from_cache, + }, git_events::{ get_commit_id_from_patch, get_most_recent_patch_with_ancestors, status_kinds, tag_value, }, @@ -31,7 +33,7 @@ pub async fn launch() -> Result<()> { // TODO: check for existing maintaiers file // TODO: check for other claims - let client = Client::default(); + let client = Client::new(Params::with_git_config_relay_defaults(&Some(&git_repo))); let repo_coordinates = get_repo_coordinates_when_remote_unknown(&git_repo, &client).await?; -- cgit v1.2.3