Bitbucket Data Center API Client
    Preparing search index...

    Interface CompareDiffParams

    Query parameters accepted by GET /rest/api/latest/projects/{key}/repos/{slug}/compare/diff{path}.

    interface CompareDiffParams {
        contextLines?: number;
        from?: string;
        fromRepo?: string;
        path?: string;
        srcPath?: string;
        to?: string;
        whitespace?: string;
    }
    Index

    Properties

    contextLines?: number

    Number of context lines to include around changed lines

    from?: string

    Source ref or commit of the comparison

    fromRepo?: string

    Source repository when comparing across forks

    path?: string

    Path of a single file to diff; omit to diff the whole comparison

    srcPath?: string

    Previous path of a copied, moved, or renamed file

    to?: string

    Target ref or commit of the comparison

    whitespace?: string

    Set to 'ignore-all' to ignore whitespace changes