OptionalcontextNumber of context lines to include around changed lines
OptionalfromSource ref or commit of the comparison
OptionalfromSource repository when comparing across forks
OptionalpathPath of a single file to diff; omit to diff the whole comparison
OptionalsrcPrevious path of a copied, moved, or renamed file
OptionaltoTarget ref or commit of the comparison
OptionalwhitespaceSet to 'ignore-all' to ignore whitespace changes
Query parameters accepted by
GET /rest/api/latest/projects/{key}/repos/{slug}/compare/diff{path}.