)]}'
{
  "commit": "f7fd8656e9a1cabac87e69861a0913a9946e32db",
  "tree": "f0d75facfacd9eea4da611628a0abc428cf3b0a9",
  "parents": [
    "6aa1fb2271f42396b7e142edd46c08f7a428c8be"
  ],
  "author": {
    "name": "Christian Couder",
    "email": "christian.couder@gmail.com",
    "time": "Mon Nov 02 16:14:50 2026 +0100"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Mon Nov 02 11:02:27 2026 -0800"
  },
  "message": "parse-options: extract lookup_long_opt() from parse_long_opt()\n\nIn a following commit, an early scan of the command line will need to\nlook up long options the same way parse_options() does, including\nunambiguous abbreviations and negated forms, but without any side\neffect: it must neither set option values nor call die() or error().\n\nparse_long_opt() can\u0027t be used for that, as it does both the look up\nand the actions that follow it: it calls get_value() on the option it\nfinds, die()s when abbreviations are disallowed, and error()s on an\nambiguous abbreviation.\n\nLet\u0027s extract a new lookup_long_opt() helper from parse_long_opt() to\nperform only the look up part, and let parse_long_opt() act on what\nlookup_long_opt() returns.\n\nThere is no behavior change intended. In particular an exact match is\nstill preferred to any abbreviation, abbreviations are still rejected\nwhen disallowed only if there is no exact match, and the ambiguity\nerror message is unchanged.\n\nHelped-by: Kaartic Sivaraam \u003ckaartic.sivaraam@gmail.com\u003e\nSigned-off-by: Christian Couder \u003cchristian.couder@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d7cbb5a343a1aeb1cc3b18891d4330e1c8e0cf9f",
      "old_mode": 33188,
      "old_path": "parse-options.c",
      "new_id": "d94d6fed93117f8c5e251beb1fd202b2dcf07c80",
      "new_mode": 33188,
      "new_path": "parse-options.c"
    }
  ]
}
