diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-07-25 21:02:26 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-07-25 22:17:23 +0100 |
| commit | 513fce723c7e37aa353844303f36022517f2db43 (patch) | |
| tree | 05e16bdd4789036af04b6c046823396f9f0faf22 /src/bin/git_remote_nostr/fetch.rs | |
| parent | e89dbc142f5a0a517f197562f5f228681d9aed47 (diff) | |
refactor: move `utils` and `list` helpers to lib
to enable forthcoming `ngit sync` cmd
Diffstat (limited to 'src/bin/git_remote_nostr/fetch.rs')
| -rw-r--r-- | src/bin/git_remote_nostr/fetch.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/git_remote_nostr/fetch.rs b/src/bin/git_remote_nostr/fetch.rs index f3d4362..221d964 100644 --- a/src/bin/git_remote_nostr/fetch.rs +++ b/src/bin/git_remote_nostr/fetch.rs | |||
| @@ -19,15 +19,15 @@ use ngit::{ | |||
| 19 | git_events::{KIND_PULL_REQUEST, KIND_PULL_REQUEST_UPDATE, tag_value}, | 19 | git_events::{KIND_PULL_REQUEST, KIND_PULL_REQUEST_UPDATE, tag_value}, |
| 20 | login::get_curent_user, | 20 | login::get_curent_user, |
| 21 | repo_ref::{RepoRef, is_grasp_server}, | 21 | repo_ref::{RepoRef, is_grasp_server}, |
| 22 | utils::{ | ||
| 23 | Direction, find_proposal_and_patches_by_branch_name, get_oids_from_fetch_batch, | ||
| 24 | get_open_or_draft_proposals, get_read_protocols_to_try, join_with_and, | ||
| 25 | set_protocol_preference, | ||
| 26 | }, | ||
| 22 | }; | 27 | }; |
| 23 | use nostr::nips::nip19; | 28 | use nostr::nips::nip19; |
| 24 | use nostr_sdk::{Event, ToBech32}; | 29 | use nostr_sdk::{Event, ToBech32}; |
| 25 | 30 | ||
| 26 | use crate::utils::{ | ||
| 27 | Direction, find_proposal_and_patches_by_branch_name, get_oids_from_fetch_batch, | ||
| 28 | get_open_or_draft_proposals, get_read_protocols_to_try, join_with_and, set_protocol_preference, | ||
| 29 | }; | ||
| 30 | |||
| 31 | pub async fn run_fetch( | 31 | pub async fn run_fetch( |
| 32 | git_repo: &Repo, | 32 | git_repo: &Repo, |
| 33 | repo_ref: &RepoRef, | 33 | repo_ref: &RepoRef, |