)]}'
{
  "commit": "8465541e8ce8eaf16e66ab847086779768c18f2d",
  "tree": "07a499721a46f259d2da05d1d6654e39211c657f",
  "parents": [
    "765428699a5381f113d19974720bc91b5bfeaf1d"
  ],
  "author": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Fri Jul 22 11:43:14 2016 -0700"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Mon Jul 25 09:16:18 2016 -0700"
  },
  "message": "grep: further simplify setting the pattern type\n\nWhen c5c31d33 (grep: move pattern-type bits support to top-level\ngrep.[ch], 2012-10-03) introduced grep_commit_pattern_type() helper\nfunction, the intention was to allow the users of grep API to having\nto fiddle only with .pattern_type_option (which can be set to \"fixed\",\n\"basic\", \"extended\", and \"pcre\"), and then immediately before compiling\nthe pattern strings for use, call grep_commit_pattern_type() to have\nit prepare various bits in the grep_opt structure (like .fixed,\n.regflags, etc.).\n\nHowever, grep_set_pattern_type_option() helper function the grep API\ninternally uses were left as an external function by mistake.  This\nfunction shouldn\u0027t have been made callable by the users of the API.\n\nLater when the grep API was used in revision traversal machinery,\nthe caller then mistakenly started calling the function around\n34a4ae55 (log --grep: use the same helper to set -E/-F options as\n\"git grep\", 2012-10-03), instead of setting the .pattern_type_option\nfield and letting the grep_commit_pattern_type() to take care of the\ndetails.\n\nThis caused an unnecessary bug that made a configured\ngrep.patternType take precedence over the command line options\n(e.g. --basic-regexp, --fixed-strings) in \"git log\" family of\ncommands.\n\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b58c7c64342698737f9c11b20457bd30ca1fc727",
      "old_mode": 33188,
      "old_path": "grep.c",
      "new_id": "0bc5cc17cd4551674a9812d092d911a4720015de",
      "new_mode": 33188,
      "new_path": "grep.c"
    },
    {
      "type": "modify",
      "old_id": "95f197a8d9bfc2a264530d17fcfa90f68dfa840d",
      "old_mode": 33188,
      "old_path": "grep.h",
      "new_id": "9e9ec5f5b299d91535d4c1f895e42f4363bda474",
      "new_mode": 33188,
      "new_path": "grep.h"
    },
    {
      "type": "modify",
      "old_id": "871812db2a34d584662f9032c207695e82aae14a",
      "old_mode": 33188,
      "old_path": "revision.c",
      "new_id": "c46dca4bcad5cd404b402ed41790aa304f5df4aa",
      "new_mode": 33188,
      "new_path": "revision.c"
    },
    {
      "type": "modify",
      "old_id": "1b2e981a0011d520d1a7d8bb8d0a5fd7892bacc4",
      "old_mode": 33261,
      "old_path": "t/t4202-log.sh",
      "new_id": "f136a0f7004c8713f9fd88ee37d7f92a5ebf618d",
      "new_mode": 33261,
      "new_path": "t/t4202-log.sh"
    }
  ]
}
