Add oldObjectId and newObjectId to the GitReferenceUpdatedListener.Update

This is a first step towards creation of the "reviewnotes" plugin and
removing this code from the Gerrit core. The reviewnotes plugin will
listen on GitReferenceUpdated and will need old and new values in order
to know which commits become part of the changed refs history.

Change-Id: If5f3598adb209a9b473c5ea4a07bf8a95f838139
Signed-off-by: Sasa Zivkov <sasa.zivkov@sap.com>
This commit is contained in:
Sasa Zivkov
2012-12-06 10:27:00 +01:00
committed by Edwin Kempin
parent 57462b7766
commit c21f309f71
15 changed files with 69 additions and 25 deletions

View File

@@ -23,6 +23,8 @@ import java.util.List;
public interface GitReferenceUpdatedListener {
public interface Update {
String getRefName();
String getOldObjectId();
String getNewObjectId();
}
public interface Event {