Implement `patch review`
This adds a new interface for reviewing patch revisions (). It starts a new or resumes an existing review and provides an UX to add comments, accept hunks or reject them.
Reviews need to be finalized via rad patch review [--accept | --reject] <id>.
Known issues / future improvements
- startup is slow on large patches: highlighting is expensive and needs to be done asynchronously
- single hunks can’t be rejected once they were accepted: current UX is to discard all that were already accepted and start out new
- existing comments will not be shown when adding new ones in the editor
This adds a new interface for reviewing patch revisions (). It starts a new or resumes an existing review and provides an UX to add comments, accept hunks or reject them.
Reviews need to be finalized via rad patch review [--accept | --reject] <id>.
Known issues / future improvements
- startup is slow on large patches: highlighting is expensive and needs to be done asynchronously
- single hunks can’t be rejected once they were accepted: current UX is to discard all that were already accepted and start out new
- existing comments will not be shown when adding new ones in the editor