My diff looks something like this.  It was generated with the java-diff-utils 
library <https://code.google.com/p/java-diff-utils/>.

--- john.txt
+++ john.txt
@@ -1,11 +1,11 @@
 In the beginning was the Word,
 and the Word was with God,
 and the Word was God.
 
-The same was in the beginning with God.
+He was in the beginning with God.
 
-And the Word was made flesh,
-and dwelt among us,
-(and we saw his glory,
-the glory as it were of the only begotten of the Father,)
+And the Word became flesh
+and made his dwelling among us,
+and we saw his glory,
+the glory as of the Father’s only Son,
 full of grace and truth.



On Wednesday, August 26, 2015 at 3:56:37 PM UTC-4, Christian Hammond wrote:
>
> Hi,
>
> What kind of diff is this, and how was it generated?
>
> Christian
>
>
> On Wednesday, August 26, 2015, KPF <kfr...@gmail.com <javascript:>> wrote:
>
>> I am trying to upload a diff via the REST API (
>> https://www.reviewboard.org/docs/manual/2.5/webapi/2.0/resources/diff-list/#webapi2.0-diff-list-resource).
>>   
>> As per the documentation, I am sending a POST request 
>> to /api/review-requests/####/diffs/ with multipart/form-data content.  The 
>> content of the "path" field is my full context unified diff.  However, I am 
>> getting a 400 response back with this body: {"fields": {"path": ["Unable to 
>> determine diff type from header"]}, "stat": "fail", "err": {"msg": "One or 
>> more fields had errors", "code": 105}}.
>>
>> I don't see any reference to a "diff type header" anywhere in the REST 
>> API documentation.  Where do I specify this?  What are valid values?
>>
>> Thanks for pointing me in the right direction,
>> KPF
>>
>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>> Happy user? Let us know! https://www.reviewboard.org/users/
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to reviewboard+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> -- 
> Christian Hammond - chri...@beanbaginc.com <javascript:>
> Review Board - https://www.reviewboard.org
> Beanbag, Inc. - https://www.beanbaginc.com
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to