Allow fetching patch files for individual commits
Review Request #7131 — Created March 28, 2015 and submitted
The patch file for an individual commit is now fetchable by sending the
Accept: text/x-patch
header to theDiffCommitResource
and
DraftDiffCommitResource
. This patch is composed of the individual
patches for allFileDiff
s in theDiffCommit
.
Ran unit tests.
Uploaded a review request with commit history and made an HTTP request
to theDiffCommitResource
API endpoint with aAccept: text/x-patch
header. The returned response was a patch file that contained only the
diff information forFileDiff
s in that commit.
- Summary:
-
Add timestamp field to the DiffCommit modelAllow fetching patch files for individual commits
- Description:
-
- Allow fetching patch files for individual commits
- The patch file for an individual commit is now fetchable by sending the
Accept: text/x-patch
header to theDiffCommitResource
andDraftDiffCommitResource
. This patch is composed of the individualpatches for all FileDiff
s in theDiffCommit
.
- Change Summary:
-
Fixup
- Commit:
-
59f38d01d8042a824179bd472f22ac7278c3dc8a4b3d41fb19dbad38788ce06fe30b414dca3c9f0e