google / git-appraise

Distributed code review system for Git repos
Apache License 2.0
5.12k stars 145 forks source link

Support edited comments. #86

Closed ojarjur closed 6 years ago

ojarjur commented 6 years ago

This change adds read-only support for comment edit actions. These are represented in the JSON format using a new "original" field that references the original, unedited comment.

By default, when displaying a comment thread that has been edited, only the current version of comment is displayed. The full history of the comment can be viewed by adding the --json flag to the git appraise show command, to display the review in JSON format.

This change defines how edits are represented in git-notes and makes the tool properly display edited comments, but does not add any support to the tool for creating edits.

This fixes #67