)]}'
{
  "commit": "7e3e479b90fd618fb8eb8222738f7cc53ab288fa",
  "tree": "1b98c55de85860844ef10a2c08223960aad9e564",
  "parents": [
    "635365eb2f67bc17482c5dbe076f20832cf92ae2"
  ],
  "author": {
    "name": "Brandon Williams",
    "email": "bmwill@google.com",
    "time": "Wed Mar 14 11:31:44 2018 -0700"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Wed Mar 14 14:15:06 2018 -0700"
  },
  "message": "connect: convert get_remote_heads to use struct packet_reader\n\nIn order to allow for better control flow when protocol_v2 is introduced\nconvert \u0027get_remote_heads()\u0027 to use \u0027struct packet_reader\u0027 to read\npacket lines.  This enables a client to be able to peek the first line\nof a server\u0027s response (without consuming it) in order to determine the\nprotocol version its speaking and then passing control to the\nappropriate handler.\n\nThis is needed because the initial response from a server speaking\nprotocol_v0 includes the first ref, while subsequent protocol versions\nrespond with a version line.  We want to be able to read this first line\nwithout consuming the first ref sent in the protocol_v0 case so that the\nprotocol version the server is speaking can be determined outside of\n\u0027get_remote_heads()\u0027 in a future patch.\n\nSigned-off-by: Brandon Williams \u003cbmwill@google.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c3a014c5babf72ee4c0d135fec264afb37b040de",
      "old_mode": 33188,
      "old_path": "connect.c",
      "new_id": "c82c90b7c37f82dfb8e0d9d9c174750dc25bb32a",
      "new_mode": 33188,
      "new_path": "connect.c"
    }
  ]
}
