)]}'
{
  "commit": "b6839fda6809b1de8d528837dfc99d0837f77c9d",
  "tree": "d5976950efb3a324cb8a47c670ea829fea75ed60",
  "parents": [
    "6e2ef8eb06456e288a0a3cc451134479173cebc5"
  ],
  "author": {
    "name": "Christian Couder",
    "email": "christian.couder@gmail.com",
    "time": "Thu Jul 16 14:19:40 2020 +0200"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Thu Jul 16 10:46:55 2020 -0700"
  },
  "message": "ref-filter: add support for %(contents:size)\n\nIt\u0027s useful and efficient to be able to get the size of the\ncontents directly without having to pipe through `wc -c`.\n\nAlso the result of the following:\n\n`git for-each-ref --format\u003d\u0027%(contents)\u0027 refs/heads/my-branch | wc -c`\n\nis off by one as `git for-each-ref` appends a newline character\nafter the contents, which can be seen by comparing its output\nwith the output from `git cat-file`.\n\nAs with %(contents), %(contents:size) is silently ignored, if a\nref points to something other than a commit or a tag:\n\n```\n$ git update-ref refs/mytrees/first HEAD^{tree}\n$ git for-each-ref --format\u003d\u0027%(contents)\u0027 refs/mytrees/first\n\n$ git for-each-ref --format\u003d\u0027%(contents:size)\u0027 refs/mytrees/first\n\n```\n\nSigned-off-by: Christian Couder \u003cchriscool@tuxfamily.org\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b739412c3062eb61a12649ab9246b6b2b40aaede",
      "old_mode": 33188,
      "old_path": "Documentation/git-for-each-ref.txt",
      "new_id": "2ea71c5f6c2c14ff6c0bda87f63f2b14b895d00b",
      "new_mode": 33188,
      "new_path": "Documentation/git-for-each-ref.txt"
    },
    {
      "type": "modify",
      "old_id": "8447cb09be0c2741b5a20426e6c0db104339fa7e",
      "old_mode": 33188,
      "old_path": "ref-filter.c",
      "new_id": "73d8bfa86d711796e24fef712fe3964115c49d9b",
      "new_mode": 33188,
      "new_path": "ref-filter.c"
    },
    {
      "type": "modify",
      "old_id": "e9f468d3603b2cfb31b61b05c364ad31abb485d2",
      "old_mode": 33261,
      "old_path": "t/t6300-for-each-ref.sh",
      "new_id": "ea9bb6dadedc2b985aa78a210a04154d9c70ec61",
      "new_mode": 33261,
      "new_path": "t/t6300-for-each-ref.sh"
    }
  ]
}
