Merge changes from topic 'commit-footers'

* changes:
  ChangeJson: Add option to include review footers
  ChangeJson: Refactor revision codepath
This commit is contained in:
Dave Borowitz
2015-05-04 19:06:56 +00:00
committed by Gerrit Code Review
8 changed files with 206 additions and 80 deletions

View File

@@ -310,6 +310,12 @@ default. Optional fields are:
* `CHECK`: include potential problems with the change.
--
[[commit-footers]]
--
* `COMMIT_FOOTERS`: include the full commit message with
Gerrit-specific commit footers in the
link:#revision-info[RevisionInfo].
.Request
----
GET /changes/?q=97&o=CURRENT_REVISION&o=CURRENT_COMMIT&o=CURRENT_FILES&o=DOWNLOAD_COMMANDS HTTP/1.0
@@ -4215,6 +4221,12 @@ entities.
|`reviewed` |optional|
Indicates whether the caller is authenticated and has commented on the
current revision. Only set if link:#reviewed[REVIEWED] option is requested.
|`messageWithFooter` |optional|
If the link:#commit-footers[COMMIT_FOOTERS] option is requested and
this is the current patch set, contains the full commit message with
Gerrit-specific commit footers, as if this revision were submitted
using the link:project-configuration.html#cherry_pick[Cherry Pick]
submit type.
|===========================
[[rule-input]]