Add a resource for retrieving diffs
Review Request #8920 — Created May 5, 2017 and submitted
The
DiffResource
, available at
a/projects/<projectName>/commits/<sha>/diff/
, yields the diff of the
commit with the given sha. Due to limitations within the JGit library,
we are only able to compute diffs for commits which have a single
parent.
Hit the API and saw the diff returned.
Change Summary:
Judicious use of
final
.
Description: |
|
|||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+90) |
Checks run (3 succeeded)
JSHint
passed.
PEP8 Style Checker
passed.
Pyflakes
passed.
Checks run (3 succeeded)
JSHint
passed.
PEP8 Style Checker
passed.
Pyflakes
passed.
Checks run (3 succeeded)
JSHint
passed.
PEP8 Style Checker
passed.
Pyflakes
passed.
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.
-
-
src/main/java/org/reviewboard/rbgerrit/DiffResource.java (Diff revision 5) Can we call this
DIFF_MIMETYPE
? -
src/main/java/org/reviewboard/rbgerrit/DiffResource.java (Diff revision 5) Indentation is kind of wacky here.
-