Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
Alias "patch" to "pr"
Open did:key:z6MkoohH...AjJf opened 1 month ago

This patch adds an alias for “patch”: “pr”.

In git, a “pull request” (short “pr”) is a request to merge a branch. GitHub has coined this term, but git-request-pull is a thing as well (and apparently has been since 2005):

https://github.com/git/git/blob/2cc71917514657b93014134350864f4849edfc83/git-request-pull.sh#L2

Users new to radicle might be confused by the term “patch” used where they expect “pull request” - or short “pr”. Thus, alias the subcommand “patch” to “pr”.


I think this might be controversial, yes, but I think have to start the discussion at some point, so why not do it now?

I am open to your thoughts!

1 file changed +1 -0 e9245b63 3eb23cc3
modified crates/radicle-cli/src/main.rs
@@ -78,6 +78,7 @@ enum Command {
    Issue(issue::Args),
    Ls(ls::Args),
    Node(node::Args),
+
    #[command(alias = "pr")]
    Patch(patch::Args),
    Path(path::Args),
    Publish(publish::Args),