)]}'
{
  "commit": "ce113604672fed9b429b1c162b1005794fff6a17",
  "tree": "21c002a890487c36226e5723666a2c5b363333ca",
  "parents": [
    "f86f31ab33c3406adebbb9f9f61be550dcc5a472"
  ],
  "author": {
    "name": "Jeff King",
    "email": "peff@peff.net",
    "time": "Sat Aug 29 01:04:18 2015 -0400"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Mon Aug 31 09:34:20 2015 -0700"
  },
  "message": "log: diagnose empty HEAD more clearly\n\nIf you init or clone an empty repository, the initial\nmessage from running \"git log\" is not very friendly:\n\n  $ git init\n  Initialized empty Git repository in /home/peff/foo/.git/\n  $ git log\n  fatal: bad default revision \u0027HEAD\u0027\n\nLet\u0027s detect this situation and write a more friendly\nmessage:\n\n  $ git log\n  fatal: your current branch \u0027master\u0027 does not have any commits yet\n\nWe also detect the case that \u0027HEAD\u0027 points to a broken ref;\nthis should be even less common, but is easy to see. Note\nthat we do not diagnose all possible cases. We rely on\nresolve_ref, which means we do not get information about\ncomplex cases. E.g., \"--default master\" would use dwim_ref\nto find \"refs/heads/master\", but we notice only that\n\"master\" does not exist. Similarly, a complex sha1\nexpression like \"--default HEAD^2\" will not resolve as a\nref.\n\nBut that\u0027s OK. We fall back to a generic error message in\nthose cases, and they are unlikely to be used anyway.\nCatching an empty or broken \"HEAD\" improves the common case,\nand the other cases are not regressed.\n\nSigned-off-by: Jeff King \u003cpeff@peff.net\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7ddbaa083e9e59d3db270b96b47a20e6c99bdaa3",
      "old_mode": 33188,
      "old_path": "revision.c",
      "new_id": "734494abe6af2288e2f0bf6ad31eb5b74db9ea9c",
      "new_mode": 33188,
      "new_path": "revision.c"
    },
    {
      "type": "modify",
      "old_id": "1b2e981a0011d520d1a7d8bb8d0a5fd7892bacc4",
      "old_mode": 33261,
      "old_path": "t/t4202-log.sh",
      "new_id": "19277dd3618019a97ef0631cc4a808f5e5bcc653",
      "new_mode": 33261,
      "new_path": "t/t4202-log.sh"
    }
  ]
}
