)]}'
{
  "commit": "afee8afa92b4a4804940f227a9ff83614f4378c2",
  "tree": "cf1d87926e18fce7d452862849bc2ec0b2b4d9cc",
  "parents": [
    "881e18400bc66e67b3f9c7e680075fc00c1f5ea5"
  ],
  "author": {
    "name": "Rich Kadel",
    "email": "richkadel@google.com",
    "time": "Fri Dec 21 08:54:58 2018 -0800"
  },
  "committer": {
    "name": "CQ bot account: commit-bot@chromium.org",
    "email": "commit-bot@chromium.org",
    "time": "Mon Jan 07 18:24:44 2019 +0000"
  },
  "message": "Added \"check_cd\" function to \"fx doctor\"\n\nverify \"cd\" does not output anything to stdout, since many\nother scripts assume this.\n\nNote that check_cd optionally prints recommendations for\nresolving the issue within the developer\u0027s shell environment.\n\nFor bash users only, doctor calls\nscripts/devshell/lib/bashrc_checkup.sh,\nwhich will attempt to load their ~/.bashrc\nfile, to allow doctor to check for conflicts in the interactive\nshell environment (e.g., functions like overriding \"cd\").\n\nFor users using non-bash shells (like zsh) this current iteration\nof \"doctor\" will still check environment variables and files\nthrough the non-interactive bash script, but we may want to add\na \"zshrc_checkup.zsh\" script as well if we want to check for zsh-specific\ninteractive shell conflicts. (The bash \"doctor\" could still\nlaunch other non-bash shell checks.)\n\nUpdated \"doctor\" script format and error handling a bit. Needs more\nwork to be easier to use and easier to add more checks.\n\nAdded --indent flag to style.sh and moved common terminal output\nstyle functions, originally in doctor, to\ndevshell/lib/common_term_styles.sh, for reusability.\n\nChange-Id: I3b054609e87274f49479c93c3a6c2e29bb7136eb\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ed7ef386c541f2d6c87146f51e680e672e82d93e",
      "old_mode": 33261,
      "old_path": "devshell/doctor",
      "new_id": "d264754bae211daf3b2b21f46c6cabbb9893ce84",
      "new_mode": 33261,
      "new_path": "devshell/doctor"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "33915d0c593f80dda07a4a18c9d58ee53099b7a0",
      "new_mode": 33188,
      "new_path": "devshell/lib/bashrc_checkup.sh"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "26940f4c8c3d4fa67aa346f27a33746d5f84a076",
      "new_mode": 33188,
      "new_path": "devshell/lib/common_term_styles.sh"
    },
    {
      "type": "modify",
      "old_id": "7d9264cc452bea5395ebc3b8cc66ca0297f0ccb3",
      "old_mode": 33188,
      "old_path": "devshell/lib/style.sh",
      "new_id": "8e0a2cf315e827a3890a7ff571b57f395a00beb0",
      "new_mode": 33188,
      "new_path": "devshell/lib/style.sh"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "32d8f37b9d89c1ae173d2bebfb8fae2da7dbb97b",
      "new_mode": 33261,
      "new_path": "tests/common_term_styles-test-visually"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b51550dd9dc7f9a016bd60dc2ad84af2de17ed65",
      "new_mode": 33261,
      "new_path": "tests/common_term_styles-tests"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
      "new_mode": 33188,
      "new_path": "tests/expected/common_term_styles-tests.err"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "4cd26e16470d086d2cc420ecf49bfb7215220dae",
      "new_mode": 33188,
      "new_path": "tests/expected/common_term_styles-tests.out"
    },
    {
      "type": "modify",
      "old_id": "b921ea71d5836e82e34d89da5c15c4c3605d4f71",
      "old_mode": 33188,
      "old_path": "tests/expected/style-tests.err",
      "new_id": "c7e4d76fb67b3b1b2c84e8dcc4f566b8bdf8d8c3",
      "new_mode": 33188,
      "new_path": "tests/expected/style-tests.err"
    },
    {
      "type": "modify",
      "old_id": "87424d738db8098608f454fb2e03a52cf7ed0d3b",
      "old_mode": 33188,
      "old_path": "tests/expected/style-tests.out",
      "new_id": "2652af8cf503eaaad2eb318696582a5c11c2b9cc",
      "new_mode": 33188,
      "new_path": "tests/expected/style-tests.out"
    },
    {
      "type": "modify",
      "old_id": "876ea64ed56494ee1a8a9bb684306ebcf046623d",
      "old_mode": 33261,
      "old_path": "tests/style-test-visually",
      "new_id": "1209d0ea2be49dc38b9809d34dd0f930dff7bc98",
      "new_mode": 33261,
      "new_path": "tests/style-test-visually"
    }
  ]
}
