Files
gerrit/gerrit-server/src/main/java/com
Edwin Kempin ef353fedd2 PatchListLoader: Fix againstParent computation
When a commit is compared against its parent, we want to show the
complete commit message as new in the diff screen (diffing the commit
message of the viewed commit with the commit message of the parent
commit does not make sense). To detect this case PatchListLoader sets
the againstParent flag.

Until recently we only supported comparing commits against the first
parent and hence the againstParent flag was only set if a comparison
against the first parent was done. Consider all parents now.

Change-Id: I29f2cae6f302cc173aa4bb6b3081f4f894007780
Signed-off-by: Edwin Kempin <ekempin@google.com>
2016-09-13 09:36:37 +00:00
..