)]}'
{
  "commit": "658b32a8187d43e9a8429183719c580baa084544",
  "tree": "7c2779aff261059f788d004c231a110fd9248df0",
  "parents": [
    "367b7b18a201937ddc44846c1012e32abdb26102"
  ],
  "author": {
    "name": "Sam Saccone",
    "email": "samccone@google.com",
    "time": "Mon Aug 24 18:26:19 2026 +0000"
  },
  "committer": {
    "name": "Sam Saccone",
    "email": "samccone@google.com",
    "time": "Mon Aug 24 18:26:19 2026 +0000"
  },
  "message": "Allow formatting parameters (?format\u003dTEXT, ?format\u003dJSON) on markdown files\n\nWhen requesting a markdown file path via the auto command `+` (e.g.\n`/repo/+/master/README.md?format\u003dTEXT`), ViewFilter previously\nunconditionally mapped all `.md` paths to `GitilesView.doc()`\n(`DocServlet`). Because `DocServlet` only handles HTML rendering and\ndoes not support TEXT (base64) or JSON representations, requesting\n`format\u003dTEXT` or `format\u003dJSON` resulted in an HTTP 400\n(UNSUPPORTED_RESPONSE_FORMAT) error.\n\nThis change updates `ViewFilter.parseAutoCommand` to check the requested\nformat. It only routes to `GitilesView.doc()` when the format is HTML or\nDEFAULT (the standard web browser view). For TEXT or JSON requests, it\npreserves `GitilesView.path()` so `PathServlet` serves the base64 or\nJSON representation as expected, matching the behavior for non-markdown\nfiles and the `+show` command.\n\nChange-Id: Idd02ce77dba03bcc922983821ee3f55c37bfa878\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e3bb71f5d954afb111f56092b7bf3c0c1f80f4a4",
      "old_mode": 33188,
      "old_path": "java/com/google/gitiles/ViewFilter.java",
      "new_id": "2cbcdff1418ad9d59ad77f0d01ce8f71a598cd0a",
      "new_mode": 33188,
      "new_path": "java/com/google/gitiles/ViewFilter.java"
    },
    {
      "type": "modify",
      "old_id": "966d7e92a84d0e96ec7dd6b9e0fb906360fb6aa0",
      "old_mode": 33188,
      "old_path": "javatests/com/google/gitiles/PathServletTest.java",
      "new_id": "18f83105344d51bf61c019552bbb92acca5b9073",
      "new_mode": 33188,
      "new_path": "javatests/com/google/gitiles/PathServletTest.java"
    },
    {
      "type": "modify",
      "old_id": "dff1de2c387db3a97a73ac3ff9cf396b235c747b",
      "old_mode": 33188,
      "old_path": "javatests/com/google/gitiles/ViewFilterTest.java",
      "new_id": "85f9639a5a4305dfd173377d125db8eebb041ce4",
      "new_mode": 33188,
      "new_path": "javatests/com/google/gitiles/ViewFilterTest.java"
    }
  ]
}
