)]}'
{
  "commit": "63020f175fe26f3250ac8d19d02ef9ee271006e5",
  "tree": "e81c6d335b0f3612f2520d3b0ec7f16a267129c1",
  "parents": [
    "53a06cf39b756eddfe4a2a34da93e3d04eb7b728"
  ],
  "author": {
    "name": "Derrick Stolee",
    "email": "dstolee@microsoft.com",
    "time": "Thu Jan 02 16:14:14 2020 +0000"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Thu Jan 02 13:46:34 2020 -0800"
  },
  "message": "commit-graph: prefer default size_mult when given zero\n\nIn 50f26bd (\"fetch: add fetch.writeCommitGraph config setting\",\n2019-09-02), the fetch builtin added the capability to write a\ncommit-graph using the \"--split\" feature. This feature creates\nmultiple commit-graph files, and those can merge based on a set\nof \"split options\" including a size multiple. The default size\nmultiple is 2, which intends to provide a log_2 N depth of the\ncommit-graph chain where N is the number of commits.\n\nHowever, I noticed during dogfooding that my commit-graph chains\nwere becoming quite large when left only to builds by \u0027git fetch\u0027.\nIt turns out that in split_graph_merge_strategy(), we default the\nsize_mult variable to 2 except we override it with the context\u0027s\nsplit_opts if they exist. In builtin/fetch.c, we create such a\nsplit_opts, but do not populate it with values.\n\nThis problem is due to two failures:\n\n 1. It is unclear that we can add the flag COMMIT_GRAPH_WRITE_SPLIT\n    with a NULL split_opts.\n 2. If we have a non-NULL split_opts, then we override the default\n    values even if a zero value is given.\n\nCorrect both of these issues. First, do not override size_mult when\nthe options provide a zero value. Second, stop creating a split_opts\nin the fetch builtin.\n\nSigned-off-by: Derrick Stolee \u003cdstolee@microsoft.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "863c858fde9afb3daac09c7ecf83cf44834574d5",
      "old_mode": 33188,
      "old_path": "builtin/fetch.c",
      "new_id": "0c15f347af2b9fce453e16aa88f0e4fb0195a994",
      "new_mode": 33188,
      "new_path": "builtin/fetch.c"
    },
    {
      "type": "modify",
      "old_id": "0aea7b2ae5263899b2b93e5acbcd1f391814e0f3",
      "old_mode": 33188,
      "old_path": "commit-graph.c",
      "new_id": "baa1a266b429caa81a0699c5c03aa9e050452d6f",
      "new_mode": 33188,
      "new_path": "commit-graph.c"
    }
  ]
}
