gerrit/gerrit-extension-api
David Pletcher 82d99d7f64 Pass commit IDs into DiffInfo
This change enables logging file access by commit ID and path using
the AuditListener interface. After a GetDiff REST request is processed,
the AuditListener.onAuditableAction method is called with an
ExtendedHttpAuditEvent parameter, which in turn references a DiffInfo
object. However, the diff base commit ID is not available anywhere in
this object graph. Left and right commit IDs are available in the
PatchScriptBuilder object; that is the data we need. This change
propagates the commit IDs through a series of intermediate data
structures and ultimately makes them available as transient fields in
the DiffInfo object. The AuditListener implementation will copy these
commit values into the access log, along with the file path, timestamp
and other typical logging fields.

The new fields are marked transient--unsupported
and undocumented. There are no anticipated side-effects.

Change-Id: I43e5a14e8951442039bd2d8e941e2aa128e82447
2015-05-05 05:35:05 +00:00
..
src/main/java/com/google/gerrit/extensions Pass commit IDs into DiffInfo 2015-05-05 05:35:05 +00:00
BUCK Extensions GWT API: Align rule with package boundaries 2015-01-26 09:26:57 +00:00
pom.xml Update version to 2.10.2 2015-03-26 16:38:04 +01:00