)]}'
{
  "commit": "241b5d3ebeea21b70a74fdc8c74e73f7ed829cb1",
  "tree": "2912c1f5896fb1356a4ba09fa48129e1a5dd310f",
  "parents": [
    "59ec22464f6c2b170b05f287e00740ea2288fe5c"
  ],
  "author": {
    "name": "René Scharfe",
    "email": "l.s.r@web.de",
    "time": "Sat Mar 06 12:26:19 2021 +0100"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Mon Mar 08 09:45:04 2021 -0800"
  },
  "message": "fix xcalloc() argument order\n\nPass the number of elements first and ther size second, as expected\nby xcalloc().  Provide a semantic patch, which was actually used to\ngenerate the rest of this patch.\n\nThe semantic patch would generate flip-flop diffs if both arguments\nare sizeofs.  We don\u0027t have such a case, and it\u0027s hard to imagine\nthe usefulness of such an allocation.  If it ever occurs then we\ncould deal with it by duplicating the rule in the semantic patch to\nmake it cancel itself out, or we could change the code to use\nCALLOC_ARRAY.\n\nSigned-off-by: René Scharfe \u003cl.s.r@web.de\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9b8cdb4a31a6ab69e7bb4e698782b11764c094c7",
      "old_mode": 33188,
      "old_path": "add-interactive.c",
      "new_id": "09faee0e8f8b2694a87e36f6b5e91e6b14300bf7",
      "new_mode": 33188,
      "new_path": "add-interactive.c"
    },
    {
      "type": "modify",
      "old_id": "a5044fcfaa62644daa45103dd6ad17647bc6a811",
      "old_mode": 33188,
      "old_path": "blame.c",
      "new_id": "d6a3f5b70bb6821e4be0860f0a3314a831245edb",
      "new_mode": 33188,
      "new_path": "blame.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "c291011607ee34618205c13d337d4ce9f040e16d",
      "new_mode": 33188,
      "new_path": "contrib/coccinelle/xcalloc.cocci"
    },
    {
      "type": "modify",
      "old_id": "b9950f10c8c486b16a2b916b0898d88c8d82fb59",
      "old_mode": 33188,
      "old_path": "range-diff.c",
      "new_id": "dfc20ad349978f38d80d76a1ed88eefb891f93cd",
      "new_mode": 33188,
      "new_path": "range-diff.c"
    },
    {
      "type": "modify",
      "old_id": "ee337df232a5025f474128a4e6331dd8eb167f92",
      "old_mode": 33188,
      "old_path": "ref-filter.c",
      "new_id": "033cd4f9f2a9c15502ec871abaab81c23d006a8c",
      "new_mode": 33188,
      "new_path": "ref-filter.c"
    },
    {
      "type": "modify",
      "old_id": "3f7391d793c87b9ff9e40572e9c219f9377d9d6a",
      "old_mode": 33188,
      "old_path": "trailer.c",
      "new_id": "61ffbf6066c033cf402849b5c446054081762e52",
      "new_mode": 33188,
      "new_path": "trailer.c"
    }
  ]
}
