)]}'
{
  "commit": "e2773aa45f673d26fe425cc5423299726f299f0b",
  "tree": "d2b091a4d4859842474cff82c8df10334a2c1c86",
  "parents": [
    "f3fc4a1b8680c114defd98ce6f2429f8946a5dc1"
  ],
  "author": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Thu Sep 10 10:01:56 2020 -0700"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Thu Sep 10 13:07:19 2020 -0700"
  },
  "message": "quote_path: code clarification\n\nThe implementation we moved from wt-status to enclose a pathname\nthat has a SP in it inside a dq-pair is a bit convoluted.  It lets\nquote_c_style_counted() do its escaping and then\n\n (1) if the input string got escaped, which is checked by seeing if\n     the result begins with a double-quote, declare that we are\n     done.  If there wasn\u0027t any SP in the input, that is OK, and if\n     there was, the result is quoted already so it is OK, too.\n\n (2) if the input string did not get escaped, and the result has SP\n     in it, enclose the whole thing in a dq-pair ourselves.\n\nInstead we can scan the path upfront to see if the input has SP in\nit.  If so, we tell quote_c_style_counted() not to enclose its\noutput in a dq-pair, and we add a dq-pair ourselves.  Whether the\ninput had bytes that quote_c_style_counted() uses backslash quoting,\nthis would give us a desired quoted string.  If the input does not\nhave SP in it, we just let quote_c_style_counted() do its thing as\nusual, which would enclose the result in a dq-pair only when needed.\n\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "aa9a37b1b1076fdd595bbfdecdf62bd208ce3eba",
      "old_mode": 33188,
      "old_path": "quote.c",
      "new_id": "0b01121192622f915bc23a6f739a15835993d10e",
      "new_mode": 33188,
      "new_path": "quote.c"
    }
  ]
}
