)]}'
{
  "commit": "6dc0c2f3384fe543a805922c6a314c7ad25a92fc",
  "tree": "994c4aa6435230b829c6cc41fd771eff7ddd9e54",
  "parents": [
    "1c5474a65bf15a4cb162dfff86d6d0b5a08a740c"
  ],
  "author": {
    "name": "Michał Górny",
    "email": "gentoo@mgorny.alt.pl",
    "time": "Sun Jul 18 10:26:40 2010 +0200"
  },
  "committer": {
    "name": "Michal Marek",
    "email": "mmarek@suse.cz",
    "time": "Tue Jul 20 15:43:27 2010 +0200"
  },
  "message": "kbuild: Make the setlocalversion script POSIX-compliant\n\nThe \u0027source\u0027 builtin is a bash alias to the \u0027.\u0027 (dot) builtin. While the\nformer is supported only by bash, the latter is specified in POSIX and\nworks fine with all POSIX-compliant shells I am aware of.\n\nThe \u0027$_\u0027 special parameter is specific to bash. It is partially\nsupported in dash too but it always evaluates to the current script path\n(which causes the script to enter a loop recursively re-executing\nitself). This is why I have replaced the two occurences of \u0027$_\u0027 with the\nexplicit parameter.\n\nThe \u0027local\u0027 builtin is another example of bash-specific code. Although\nit is supported by all POSIX-compliant shells I am aware of, it is not\npart of POSIX specification and thus the code should not rely on it\nassigning a specific value to the local variable. Moreover, the \u0027posh\u0027\nshell has a limited version of \u0027local\u0027 builtin not supporting direct\nvariable assignments. Thus, I have broken one of the \u0027local\u0027\ndeclarations down into a (non-POSIX) \u0027local\u0027 declaration and a plain\n(POSIX-compliant) variable assignment.\n\nSigned-off-by: Michał Górny \u003cgentoo@mgorny.alt.pl\u003e\nSigned-off-by: Michal Marek \u003cmmarek@suse.cz\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d6a866ed1835c8f1ee4524c6bb26df554c83c6e1",
      "old_mode": 33261,
      "old_path": "scripts/setlocalversion",
      "new_id": "a7b9f7607e133a54fe0210ec349ace403d16d0bd",
      "new_mode": 33261,
      "new_path": "scripts/setlocalversion"
    }
  ]
}
