get
https://COMPANY.my.bluecanvas.io/apis/rest/v1/diff
Returns how one file changed between two refs: both versions and a unified patch.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Returns one file at two refs, with the patch that turns the base version into the head version. Useful with commit SHAs, for example to see what one sync changed in a file.
Response fields
| Field | Description |
|---|---|
status | ADD, MODIFY, DELETE, or UNCHANGED when the file is the same at both refs. A path that exists at neither ref is also reported as UNCHANGED, with old and new both null. |
binary | true for a binary file, which carries no text and no patch. |
additions, deletions | Lines added and removed. |
patch | Unified diff; null when unchanged or binary. |
old | Content at base; null when absent or binary. |
new | Content at head; null when absent or binary. |
