)]}'
{
  "commit": "949af0684c1f84587504e2143fca6f9bb8504e31",
  "tree": "a54e7ba693e84d2a7e3837fd68df6e061721467f",
  "parents": [
    "56b43607f975841e70203e55bba3c0b0228da6b0"
  ],
  "author": {
    "name": "Karthik Nayak",
    "email": "karthik.188@gmail.com",
    "time": "Tue Jan 10 14:19:52 2017 +0530"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Tue Jan 31 12:43:04 2017 -0800"
  },
  "message": "branch: use ref-filter printing APIs\n\nPort branch.c to use ref-filter APIs for printing. This clears out\nmost of the code used in branch.c for printing and replaces them with\ncalls made to the ref-filter library.\n\nIntroduce build_format() which gets the format required for printing\nof refs. Make amendments to print_ref_list() to reflect these changes.\n\nThe strings included in build_format() may not be safely quoted for\ninclusion (i.e. it might contain \u0027%\u0027 which needs to be escaped with an\nadditional \u0027%\u0027). Introduce quote_literal_for_format() as a helper\nfunction which takes a string and returns a version of the string that\nis safely quoted to be used in the for-each-ref format which is built\nin build_format().\n\nChange calc_maxwidth() to also account for the length of HEAD ref, by\ncalling ref-filter:get_head_discription().\n\nAlso change the test in t6040 to reflect the changes.\n\nBefore this patch, all cross-prefix symrefs weren\u0027t shortened. Since\nwe\u0027re using ref-filter APIs, we shorten all symrefs by default. We also\nallow the user to change the format if needed with the introduction of\nthe \u0027--format\u0027 option in the next patch.\n\nMentored-by: Christian Couder \u003cchristian.couder@gmail.com\u003e\nMentored-by: Matthieu Moy \u003cmatthieu.moy@grenoble-inp.fr\u003e\nHelped-by: Junio C Hamano \u003cgitster@pobox.com\u003e\nHelped-by: Jeff King \u003cpeff@peff.net\u003e\nHelped-by: Ramsay Jones \u003cramsay@ramsayjones.plus.com\u003e\nSigned-off-by: Karthik Nayak \u003ckarthik.188@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "34cd61cd904c3f8d36d9c00ddba7d9dd2bce4590",
      "old_mode": 33188,
      "old_path": "builtin/branch.c",
      "new_id": "f293ee5b0f5a9269a40564c94dba404be983a861",
      "new_mode": 33188,
      "new_path": "builtin/branch.c"
    },
    {
      "type": "modify",
      "old_id": "52283dfc8cdafabba485fa6896279d600230abf9",
      "old_mode": 33261,
      "old_path": "t/t3203-branch-output.sh",
      "new_id": "45213280a1030ff926cd4029e89b1cf6d3de9108",
      "new_mode": 33261,
      "new_path": "t/t3203-branch-output.sh"
    },
    {
      "type": "modify",
      "old_id": "3d5c238c8150c13b1244f8c4208856714265245a",
      "old_mode": 33261,
      "old_path": "t/t6040-tracking-info.sh",
      "new_id": "97a07655a0e0d74747259498bfbb8d03ea6c7480",
      "new_mode": 33261,
      "new_path": "t/t6040-tracking-info.sh"
    }
  ]
}
