)]}'
{
  "commit": "9b5fe78b343d2416e5c6da28fa80303957aec371",
  "tree": "a1929ac2c6b390d6cc5fa3ec4bb1691a1bdfc413",
  "parents": [
    "2a01ef8ca31ab1cb889485ba8d9a20c7ba7ab54f"
  ],
  "author": {
    "name": "Jeff King",
    "email": "peff@peff.net",
    "time": "Thu Aug 06 01:33:57 2015 -0400"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Fri Aug 07 11:52:46 2015 -0700"
  },
  "message": "test-lib: disable trace when test is not verbose\n\nThe \"-x\" test-script option turns on the shell\u0027s \"-x\"\ntracing, which can help show why a particular test is\nfailing. Unfortunately, this can create false negatives in\nsome tests if they invoke a shell function with its stderr\nredirected. t5512.10 is such a test, as it does:\n\n    test_must_fail git ls-remote refs*master \u003eactual 2\u003e\u00261 \u0026\u0026\n    test_cmp exp actual\n\nThe \"actual\" file gets the \"-x\" trace for the test_must_fail\nfunction, which prevents it from matching the expected\noutput.\n\nThere\u0027s no way to avoid this without managing the\ntrace flag inside each sub-function, which isn\u0027t really a\nworkable solution. But unless you specifically care about\nt5512.10, we can work around it by enabling tracing only for\nthe specific tests we want.\n\nYou can already do:\n\n    ./t5512-ls-remote.sh -x --verbose-only\u003d16\n\nto see the trace only for a specific test. But that doesn\u0027t\n_disable_ the tracing in the other tests; it just sends it\nto /dev/null. However, there\u0027s no point in generating a\ntrace that the user won\u0027t see, so we can simply disable\ntracing whenever it doesn\u0027t have a matching verbose flag.\n\nThe normal case of just \"./t5512-ls-remote.sh -x\" stays the\nsame, as \"-x\" already implies \"--verbose\" (and\n\"--verbose-only\" overrides \"--verbose\", which is why this\nworks at all). And for our test, we need only check\n$verbose, as maybe_setup_verbose will have already\nset that flag based on the $verbose_only list).\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": "bc20185b51ba85db9f12659096b5ca859206ca35",
      "old_mode": 33188,
      "old_path": "t/test-lib.sh",
      "new_id": "ab8461648494848b05170ac402f66acd168baee1",
      "new_mode": 33188,
      "new_path": "t/test-lib.sh"
    }
  ]
}
