gerrit cli #18
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@rbt requested
there aren't good gerrit clis at the moment. this is very silly and we really ought to have something nicer.
Features I'd like:
gerrit push
instead of typing out the magicgit push origin HEAD:refs/for/main
invocationgerrit checkout 452
to checkout a CLgerrit down
to check out the previous CL in a stack (andgerrit up
for the next one):cfile
for reference a few aliases we use:
that does "push" (
gpush
) and "checkout" (cocl
). "down"/"up" should be easy enough to add by asking the current commit for its change-id, asking gerrit for the prev/next change, and checking that out?as a reminder also, I documented a way to avoid the need for the push magic at https://wiki.lix.systems/books/lix-contributors/page/gerrit#bkmrk-pushing
it's particularly nice in that it's just a one-time thing you do at the time you check the repo out, much like installing the commit-msg hook