)]}'
{
  "commit": "62dfd02e30e33be7b6acab5e2e50677d60b8ff8c",
  "tree": "189175a08e2ae3f201942404c7c03c92cb7e4d4a",
  "parents": [
    "7e5649156720ec6c3aa5e2036b27811bc8195ab9"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Tue Oct 17 11:38:06 2023 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Tue Oct 17 11:38:06 2023 +0200"
  },
  "message": "[gdb/cli] Factor out try_source_highlight\n\nFunction source_cache::ensure contains some code using the GNU\nsource-highlight library.\n\nThe code is a sizable part of the function, and contains conditional\ncompilation in a slightly convoluted way:\n...\n       if (!already_styled)\n #endif /* HAVE_SOURCE_HIGHLIGHT */\n       {\n...\n\nFix this by factoring out the code into new function try_source_highlight,\nsuch that:\n- source_cache::ensure is easier to read, and\n- the conditional compilation is at the level of the function body.\n\nTested on x86_64-linux.\n\nReviewed-By: Lancelot Six \u003clancelot.six@amd.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ae02d2516d9601cb691c60e0d2f0aa756e89d624",
      "old_mode": 33188,
      "old_path": "gdb/source-cache.c",
      "new_id": "a6b035b513cad29c960042ca8bbbd2a5f90e55f2",
      "new_mode": 33188,
      "new_path": "gdb/source-cache.c"
    }
  ]
}
