google / git-appraise

Distributed code review system for Git repos
Apache License 2.0
5.14k stars 146 forks source link

Submitting a rewritten branch creates a new review #55

Closed afranke closed 8 years ago

afranke commented 8 years ago

I have submitted a first version of my branch for review, the review was rejected because I needed to fix something. I fixed what I was asked to, used commit --amend, and submitted again. Instead of reusing the existing (rejected) review and appending to the discussion, it created a brand new review as if the first one didn't exist, thus losing history.

ojarjur commented 8 years ago

First off, thanks for trying out the tool and providing feedback.

The behavior your are seeing is intentional (as opposed to being a bug that slipped through), but I agree that there is a lot of room for improvement.

Things get complicated because sometimes you actually do want to throw away the old review and create a new one. However, as you mentioned, at other times you just want to continue the review at a different starting commit.

Right now we only support the first option, but want to support both. Issue #45 lays out the current plan of record in this regard.

However, even once we do finish the work in #45, the default will continue to be creating a new review, as:

and

So, to rewrite the commit while continuing the current review, you'll have to run something like git appraise rebase rather than just git commit --amend.

ojarjur commented 8 years ago

FYI, I'll keep this open until #45 is closed, but most of the discussion will happen in that issue instead of this one.