)]}'
{
  "commit": "678e484b7d4e6388edeec3470bbbcd206817c148",
  "tree": "27f426c9db30f349d54e56cb28ee91c37ef2a050",
  "parents": [
    "685359cf2d1996aed2f1b1e2857528819d27105d"
  ],
  "author": {
    "name": "Johannes Schindelin",
    "email": "johannes.schindelin@gmx.de",
    "time": "Sat Jun 12 11:36:51 2010 -0500"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Sun Jun 13 09:16:38 2010 -0700"
  },
  "message": "grep: Add the option \u0027--open-files-in-pager\u0027\n\nThis adds an option to open the matching files in the pager, and if the\npager happens to be \"less\" (or \"vi\") and there is only one grep pattern,\nit also jumps to the first match right away.\n\nThe short option was chose as \u0027-O\u0027 to avoid clashes with GNU grep\u0027s\noptions (as suggested by Junio).\n\nSo, \u0027git grep -O abc\u0027 is a short form for \u0027less +/abc $(grep -l abc)\u0027\nexcept that it works also with spaces in file names, and it does not\nstart the pager if there was no matching file.\n\n[jn: rebased and added tests; with error handling fix from Junio\nsquashed in]\n\nSigned-off-by: Johannes Schindelin \u003cjohannes.schindelin@gmx.de\u003e\nSigned-off-by: Jonathan Nieder \u003cjrnieder@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4b32322a67d9f3de8b555d3d9d03e7ddab14e0a7",
      "old_mode": 33188,
      "old_path": "Documentation/git-grep.txt",
      "new_id": "8fdd8e1e42789a5afd01a23d6c1739f96272cebe",
      "new_mode": 33188,
      "new_path": "Documentation/git-grep.txt"
    },
    {
      "type": "modify",
      "old_id": "211121289049d9e3d6422b4a0dfc43146850b0b2",
      "old_mode": 33188,
      "old_path": "builtin/grep.c",
      "new_id": "1e8b9465ed509122f298aa1b9aa21f3d70e3297d",
      "new_mode": 33188,
      "new_path": "builtin/grep.c"
    },
    {
      "type": "modify",
      "old_id": "99f036302a7e6d884369d1d3f4ce428e437cbccd",
      "old_mode": 33188,
      "old_path": "git.c",
      "new_id": "265fa09d8d361ec0dab3626c846906f100cd6949",
      "new_mode": 33188,
      "new_path": "git.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "f8c602587693d2739dfd6e06b9d5d8126de62cf6",
      "new_mode": 33188,
      "new_path": "t/lib-pager.sh"
    },
    {
      "type": "modify",
      "old_id": "3bc7a2a796bdb97702eaaf92e26b189cc4204c90",
      "old_mode": 33261,
      "old_path": "t/t7006-pager.sh",
      "new_id": "fc993fc8c48167f7a7deebf15e1969d6e4320e78",
      "new_mode": 33261,
      "new_path": "t/t7006-pager.sh"
    },
    {
      "type": "rename",
      "old_id": "e249c3ed4176b4934ae57541ab8b671801968eae",
      "old_mode": 33261,
      "old_path": "t/t7002-grep.sh",
      "new_id": "e249c3ed4176b4934ae57541ab8b671801968eae",
      "new_mode": 33261,
      "new_path": "t/t7810-grep.sh",
      "score": 100
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "fcfc56ea61d708a95a85624440fe56b52fedef62",
      "new_mode": 33261,
      "new_path": "t/t7811-grep-open.sh"
    }
  ]
}
