diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-09-24 15:03:58 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-09-24 19:48:11 +0100 |
| commit | d01380f7b3efebc9c40a2e71c2ddd635fa936be4 (patch) | |
| tree | 58af24e8981bfa4b0c8dc330ea8903dac3bbc479 /src/bin/git_remote_nostr/push.rs | |
| parent | 0acc9768c2aff4bf4495c89698f29b56dae2f4b4 (diff) | |
feat(login): login via nip46 QR code
or nostrconnect url string which is a much better UX flow for nip46
Diffstat (limited to 'src/bin/git_remote_nostr/push.rs')
| -rw-r--r-- | src/bin/git_remote_nostr/push.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/git_remote_nostr/push.rs b/src/bin/git_remote_nostr/push.rs index 3bda6ba..0f4e792 100644 --- a/src/bin/git_remote_nostr/push.rs +++ b/src/bin/git_remote_nostr/push.rs | |||
| @@ -16,6 +16,7 @@ use git_events::{ | |||
| 16 | generate_cover_letter_and_patch_events, generate_patch_event, get_commit_id_from_patch, | 16 | generate_cover_letter_and_patch_events, generate_patch_event, get_commit_id_from_patch, |
| 17 | }; | 17 | }; |
| 18 | use ngit::{ | 18 | use ngit::{ |
| 19 | cli_interactor::count_lines_per_msg_vec, | ||
| 19 | client::{self, get_event_from_cache_by_id}, | 20 | client::{self, get_event_from_cache_by_id}, |
| 20 | git::{ | 21 | git::{ |
| 21 | self, | 22 | self, |
| @@ -39,10 +40,9 @@ use crate::{ | |||
| 39 | git::Repo, | 40 | git::Repo, |
| 40 | list::list_from_remotes, | 41 | list::list_from_remotes, |
| 41 | utils::{ | 42 | utils::{ |
| 42 | count_lines_per_msg_vec, find_proposal_and_patches_by_branch_name, get_all_proposals, | 43 | find_proposal_and_patches_by_branch_name, get_all_proposals, get_remote_name_by_url, |
| 43 | get_remote_name_by_url, get_short_git_server_name, get_write_protocols_to_try, | 44 | get_short_git_server_name, get_write_protocols_to_try, join_with_and, |
| 44 | join_with_and, push_error_is_not_authentication_failure, read_line, | 45 | push_error_is_not_authentication_failure, read_line, set_protocol_preference, Direction, |
| 45 | set_protocol_preference, Direction, | ||
| 46 | }, | 46 | }, |
| 47 | }; | 47 | }; |
| 48 | 48 | ||