)]}' { "commit": "2b62d747d2208044815d02a9cf7ade359129f18b", "tree": "980e7f7f165a004acfc89cf77372a1db78e391b1", "parents": [ "0022fffa0b417047b4aea05974b51506c6f8c454" ], "author": { "name": "Vadim Bendebury", "email": "vbendeb@chromium.org", "time": "Sun Jun 22 13:14:51 2014 -0700" }, "committer": { "name": "chrome-internal-fetch", "email": "chrome-internal-fetch@google.com", "time": "Tue Jul 15 01:41:35 2014 +0000" }, "message": "Add option to use pre-upload.py as a pre-submit hook\n\nThe new command line option (--pre-submit) forces the script to run\nthe check on the files prepared to be submitted as opposed to running\non the previously submitted patches.\n\nThis, among other things, requires filtering out several checks (those\napplying to the commit message contents).\n\nThe \u0027commit\u0027 function argument throughout this script means \u0027the sha1\nof a commit\u0027. A special value (\u0027pre-submit\u0027) is used to indicate that\nthe git command should operate not on a commit but on a cached change\nprepared to be committed.\n\nChecks involving checpatch.pl need to be amended to include the\n--ignore\u003dMISSING_SIGN_OFF command line option, as the commit message\nis not available in this case.\n\nBUG\u003dnone\nTEST\u003dmanual\n . verified that ./pre-upload_unittest.py still passes\n\n . created bogus CLs in ~/trucnk/src/platform/depthcharge and\n ~/trunk/src/third_party/kernel/3.4 and observed proper error\n messages generated when running\n\n $ \u003cpath to\u003e/pre-upload.py --pre-submit\n\n in those trees.\n\nChange-Id: I023f983409ae0576ebb43a7b46e82cf319a959d5\nSigned-off-by: Vadim Bendebury \u003cvbendeb@chromium.org\u003e\nReviewed-on: https://chromium-review.googlesource.com/205172\n", "tree_diff": [ { "type": "modify", "old_id": "cb8c3b77907f3438967a9d21c12b9e6d50f27cb0", "old_mode": 33261, "old_path": "pre-upload.py", "new_id": "b188adab69071bff89086dc10d065c7174367797", "new_mode": 33261, "new_path": "pre-upload.py" } ] }