)]}'
{
  "commit": "656be5948a954422882bd498d6f5a4516326c952",
  "tree": "c96f2de6766ec5b08663e0c4f67031d5b855c688",
  "parents": [
    "43157175b549b7d72c3e79fb212769cc1f6acfa5"
  ],
  "author": {
    "name": "Kristofer Karlsson",
    "email": "krka@spotify.com",
    "time": "Fri Oct 23 13:11:59 2026 +0000"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Fri Oct 23 08:32:30 2026 -0700"
  },
  "message": "connected: add \"auto\" connectivity check mode\n\nThe incremental connectivity check pays a per-commit cost.  For\nevery incoming commit it reads the new trees along the changed\npaths, and the trees at the same paths in its parents to compare\nagainst.  A parent tree is often read again even though an earlier\ncommit already read it: on git.git, about a third of the tree reads\nfor 2000 incoming commits are such re-reads.  The full check\ninstead pays a mostly fixed cost for walking the boundary trees,\nso with many incoming commits the incremental check becomes the\nslower one (see the previous commit).  Users who mostly\nreceive small pushes but occasionally a large one should not have\nto choose between the two.\n\nAdd an \"auto\" value for transfer.connectivityCheck that picks the\nmode based on the incoming history.  When the revision walk is\nlimited, which is the case whenever the receiving repository has\nreferences, the incoming commit list is already computed by\nlimit_list(), so counting it is cheap.  \"auto\" then uses the\nincremental check for up to 1000 incoming commits, and the full\ncheck above that.\n\nThe cutoff is a fixed constant based on the p5413 fixture in the\nprevious commit, where breakeven is between 500 and 3000 commits.\nIt is conservative for repositories with large trees, where the\nfixed cost of the full check is higher.  Measured on real\nrepositories (rev-list against a single boundary commit, mean\nof at least 10 runs):\n\n    repository   files  commits    full  incr.  full/incr\n    internal A    556K     1000   1.71s  0.61s    2.8x\n    internal A    556K     4000   2.78s  2.83s    1.0x\n    internal B    288K     1000   1.78s  0.88s    2.0x\n    linux          95K      598   0.33s  0.12s    2.7x\n    linux          95K     1728   0.56s  0.35s    1.6x\n    git           4.9K      984   0.22s  0.27s    0.8x\n\nWith small trees incremental can be slower within the cutoff,\nbut both modes are fast enough there (0.22s vs 0.27s for git\nabove) that the difference does not matter in practice.\n\nNo single cutoff is optimal for every repository, so it can be set\nwith \"auto\u003d\u003ccutoff\u003e\"; plain \"auto\" uses 1000.  A malformed cutoff\nis treated like any other unknown value: it falls back to \"full\"\nwith a warning.\n\nSuggested-by: Patrick Steinhardt \u003cps@pks.im\u003e\nSigned-off-by: Kristofer Karlsson \u003ckrka@spotify.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "cba7597a584e0c9fc80b219d47356f06c9bb0ea0",
      "old_mode": 33188,
      "old_path": "Documentation/config/transfer.adoc",
      "new_id": "f77b25ff8b9732e7c33dcb11f34677aa670f347e",
      "new_mode": 33188,
      "new_path": "Documentation/config/transfer.adoc"
    },
    {
      "type": "modify",
      "old_id": "2023ad5f7544472fbb9bfe1c3dd14b10071d2871",
      "old_mode": 33188,
      "old_path": "Documentation/rev-list-options.adoc",
      "new_id": "285fb3809ff8f46281fe72672b467108f69f3be9",
      "new_mode": 33188,
      "new_path": "Documentation/rev-list-options.adoc"
    },
    {
      "type": "modify",
      "old_id": "c07ad6e30ccd864361de1e3cdcfafe584941c978",
      "old_mode": 33188,
      "old_path": "builtin/rev-list.c",
      "new_id": "071a0e3cb5ff5eb2416dcfe097839a6050ef11e5",
      "new_mode": 33188,
      "new_path": "builtin/rev-list.c"
    },
    {
      "type": "modify",
      "old_id": "c0329874100adf650852f90080a3f5f493f1b0ab",
      "old_mode": 33188,
      "old_path": "connected.c",
      "new_id": "8ceaa45644b13cd143ad5bbbde9ff0ca84339853",
      "new_mode": 33188,
      "new_path": "connected.c"
    },
    {
      "type": "modify",
      "old_id": "109ad17cfffcafba99a1f00e4dae0eaac900d875",
      "old_mode": 33261,
      "old_path": "t/t5413-connectivity-check.sh",
      "new_id": "60edf99b63b363850b1295348d33dc68d30071d3",
      "new_mode": 33261,
      "new_path": "t/t5413-connectivity-check.sh"
    }
  ]
}
