)]}'
{
  "commit": "4c7865b4763552f4294e7a3738b796ea918a7c3d",
  "tree": "7e26038aaf5393a2df9d5b945a6840555e7a661d",
  "parents": [
    "ed17fdf0b3ea6c0b8a8f96125ccc785c5587bb9c"
  ],
  "author": {
    "name": "Josh Bleecher Snyder",
    "email": "josharian@gmail.com",
    "time": "Fri May 23 17:26:34 2025 +0000"
  },
  "committer": {
    "name": "Josh Bleecher Snyder",
    "email": "josharian@gmail.com",
    "time": "Fri May 23 13:51:38 2025 -0700"
  },
  "message": "webui: fix diff view failing when added file doesn\u0027t exist in working directory\n\nWhen viewing uncommitted changes in the diff view and there\u0027s a file that\nwas added in the latest commit but doesn\u0027t exist in the current working\ndirectory, the code was trying to fetch the working copy content and\nfailing with \u0027Failed to fetch working copy content\u0027.\n\nThis adds fallback logic for added files (status \u0027A\u0027) to use the\ncommitted content from git when the working copy cannot be retrieved,\nsimilar to how deleted files are already handled.\n\nThe fix changes the error handling in loadFileContent() to:\n- Check if file status is \u0027A\u0027 (added) and has a new_hash\n- Fall back to using gitService.getFileContent(file.new_hash) instead\n  of failing completely\n- Log a warning but continue gracefully\n\nThis ensures the diff view works correctly when showing ranges ending\nin \u0027uncommitted changes\u0027 even with files that were added but later\nremoved from the working directory.\n\nCo-Authored-By: sketch \u003chello@sketch.dev\u003e\nChange-ID: s73a6d30e7af97e82k\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1b673cd5971909ec1a020b3f726a08010efe521d",
      "old_mode": 33188,
      "old_path": "webui/src/web-components/sketch-diff2-view.ts",
      "new_id": "fd42e603c7ac9362c16638f07932251ad779e5e0",
      "new_mode": 33188,
      "new_path": "webui/src/web-components/sketch-diff2-view.ts"
    }
  ]
}
