)]}'
{
  "commit": "cf2ab916afa4231f7e9db31796e7c0f712ff6ad1",
  "tree": "3a0b21eb6255d2828d9518dd34583b161f117c1e",
  "parents": [
    "8d2dfc49b199c7da6faefd7993630f24bd37fee0"
  ],
  "author": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Fri Apr 10 18:15:26 2009 -0700"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Sun Apr 12 17:28:31 2009 -0700"
  },
  "message": "show_object(): push path_name() call further down\n\nIn particular, pushing the \"path_name()\" call _into_ the show() function\nwould seem to allow\n\n - more clarity into who \"owns\" the name (ie now when we free the name in\n   the show_object callback, it\u0027s because we generated it ourselves by\n   calling path_name())\n\n - not calling path_name() at all, either because we don\u0027t care about the\n   name in the first place, or because we are actually happy walking the\n   linked list of \"struct name_path *\" and the last component.\n\nNow, I didn\u0027t do that latter optimization, because it would require some\nmore coding, but especially looking at \"builtin-pack-objects.c\", we really\ndon\u0027t even want the whole pathname, we really would be better off with the\nlist of path components.\n\nWhy? We use that name for two things:\n - add_preferred_base_object(), which actually _wants_ to traverse the\n   path, and now does it by looking for \u0027/\u0027 characters!\n - for \u0027name_hash()\u0027, which only cares about the last 16 characters of a\n   name, so again, generating the full name seems to be just unnecessary\n   work.\n\nAnyway, so I didn\u0027t look any closer at those things, but it did convince\nme that the \"show_object()\" calling convention was crazy, and we\u0027re\nactually better off doing _less_ in list-objects.c, and giving people\naccess to the internal data structures so that they can decide whether\nthey want to generate a path-name or not.\n\nThis patch does that, and then for people who did use the name (even if\nthey might do something more clever in the future), it just does the\nstraightforward \"name \u003d path_name(path, component); .. free(name);\" thing.\n\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dde8cc3f01a73f422e6cd025382bf6662804ea11",
      "old_mode": 33188,
      "old_path": "builtin-pack-objects.c",
      "new_id": "71041453f29715fdb18f2b74811f1ebfa6bf5311",
      "new_mode": 33188,
      "new_path": "builtin-pack-objects.c"
    },
    {
      "type": "modify",
      "old_id": "759e6714ce37abc82921f5c42c0cac5fd53a3222",
      "old_mode": 33188,
      "old_path": "builtin-rev-list.c",
      "new_id": "aa3c962e56bd08e8e2a632b7170283d05efb69a2",
      "new_mode": 33188,
      "new_path": "builtin-rev-list.c"
    },
    {
      "type": "modify",
      "old_id": "5a4af62bdc8b939939511ff66151343cda25a45d",
      "old_mode": 33188,
      "old_path": "list-objects.c",
      "new_id": "30ded3d4dd9d41432eba317ccc8765746b7d5c95",
      "new_mode": 33188,
      "new_path": "list-objects.c"
    },
    {
      "type": "modify",
      "old_id": "13b0dd998ebfd5b870e398c705a19781979cb8e8",
      "old_mode": 33188,
      "old_path": "list-objects.h",
      "new_id": "0b2de64301b59b5e27ca738242c92109332f9e07",
      "new_mode": 33188,
      "new_path": "list-objects.h"
    },
    {
      "type": "modify",
      "old_id": "f95104b08081b0827ef5183f8b90f387665f0fb2",
      "old_mode": 33188,
      "old_path": "revision.c",
      "new_id": "69d5fd4784eb849221e3bd12d33ab48de45d431f",
      "new_mode": 33188,
      "new_path": "revision.c"
    },
    {
      "type": "modify",
      "old_id": "6fcfb8ce0c956a07a77be73f04375567d7f0cd37",
      "old_mode": 33188,
      "old_path": "revision.h",
      "new_id": "e5b8908fde36554de8ee211e60fe7539dbe3953f",
      "new_mode": 33188,
      "new_path": "revision.h"
    },
    {
      "type": "modify",
      "old_id": "bdbd67bc1d0198e54c8b6607d65ef98e72bde03f",
      "old_mode": 33188,
      "old_path": "upload-pack.c",
      "new_id": "d8ce30654bb7df4e84f30f837aea0d16dd6b48af",
      "new_mode": 33188,
      "new_path": "upload-pack.c"
    }
  ]
}
