github.com/mistwind/reviewdog@v0.0.0-20230322024206-9cfa11856d58/diff/testdata/sample.git.diff.json (about)

     1  [
     2    {
     3      "PathOld": "a/sample.old.txt",
     4      "PathNew": "b/sample.new.txt",
     5      "TimeOld": "",
     6      "TimeNew": "",
     7      "Hunks": [
     8        {
     9          "StartLineOld": 1,
    10          "LineLengthOld": 3,
    11          "StartLineNew": 1,
    12          "LineLengthNew": 4,
    13          "Section": "",
    14          "Lines": [
    15            {
    16              "Type": 0,
    17              "Content": "unchanged, contextual line",
    18              "LnumDiff": 1,
    19              "LnumOld": 1,
    20              "LnumNew": 1
    21            },
    22            {
    23              "Type": 2,
    24              "Content": "deleted line",
    25              "LnumDiff": 2,
    26              "LnumOld": 2,
    27              "LnumNew": 0
    28            },
    29            {
    30              "Type": 1,
    31              "Content": "added line",
    32              "LnumDiff": 3,
    33              "LnumOld": 0,
    34              "LnumNew": 2
    35            },
    36            {
    37              "Type": 1,
    38              "Content": "added line",
    39              "LnumDiff": 4,
    40              "LnumOld": 0,
    41              "LnumNew": 3
    42            },
    43            {
    44              "Type": 0,
    45              "Content": "unchanged, contextual line",
    46              "LnumDiff": 5,
    47              "LnumOld": 3,
    48              "LnumNew": 4
    49            }
    50          ]
    51        }
    52      ],
    53      "Extended": [
    54        "diff --git a/sample.old.txt b/sample.new.txt",
    55        "index a949a96..769bdae 100644"
    56      ]
    57    }
    58  ]