Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
Feature request: Not having to provide a patch-id when 'rad patch show'ing on a patch branch
Open did:key:z6MkwcUR...q1kL opened 8 months ago crate=radicle-cli type=feature

I just thought of a feature idea that might be nice to have:

I just checked out (as in git checkout) a branch that is a PR and then ran rad patch show. That told me that I have to submit a patch-id. Would be nice if the command could be a bit more intelligent and find out that I want to use the patch/PR that my HEAD currently points to.

Also, running rad patch checkout needs the patch-id and the latest revision id. Would be nice if that could be appreviated a bit. I looked at rad patch update but that’s something else I guess, so maybe rad patch checkout --update or rad patch checkout --latest would be nice, always under the assumption that my HEAD points to a patch branch of course.

levitte commented 8 months ago

I agree, but would make it more general: when you’re currently on a branch that tracks a patch ref, its patch ID should be the default patch ID for any rad patch command that takes a patch ID as an argument.

levitte commented 8 months ago

A comment to @matthiasbeyer: re updating an already checked out patch, I usually resort to standard git commands to update the branch you’re on. git pull --ff is my usual command to do that.