From c0847f928c32adb0b4dfc3b73ee77fa3cdb5ec21 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 14 Feb 2024 08:41:02 +0000 Subject: feat!: move `prs create`>`send`, `prs list`>`list` remove unnecessary hierachy of `prs` which is also a troublesome term replace the concept of `create` which aligns more to the PR github model to `send` which aligns more with the git patch model --- src/git.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/git.rs') diff --git a/src/git.rs b/src/git.rs index cd42724..113a63c 100644 --- a/src/git.rs +++ b/src/git.rs @@ -6,7 +6,7 @@ use anyhow::{bail, Context, Result}; use git2::{DiffOptions, Oid, Revwalk}; use nostr::prelude::{sha1::Hash as Sha1Hash, Hash}; -use crate::sub_commands::prs::list::tag_value; +use crate::sub_commands::list::tag_value; pub struct Repo { git_repo: git2::Repository, @@ -1251,7 +1251,7 @@ mod tests { mod apply_patch { use super::*; - use crate::{repo_ref::RepoRef, sub_commands::prs::create::generate_patch_event}; + use crate::{repo_ref::RepoRef, sub_commands::send::generate_patch_event}; fn generate_patch_from_head_commit(test_repo: &GitTestRepo) -> Result { let original_oid = test_repo.git_repo.head()?.peel_to_commit()?.id(); @@ -1405,7 +1405,7 @@ mod tests { use test_utils::TEST_KEY_1_KEYS; use super::*; - use crate::{repo_ref::RepoRef, sub_commands::prs::create::generate_pr_and_patch_events}; + use crate::{repo_ref::RepoRef, sub_commands::send::generate_pr_and_patch_events}; static BRANCH_NAME: &str = "add-example-feature"; // returns original_repo, pr_event, patch_events -- cgit v1.2.3