)]}'
{
  "commit": "9051638519e7f9d52ce87d1baa88b35141f073aa",
  "tree": "9fbedc982288799d1ea86baf140cebb5f07d7695",
  "parents": [
    "5a71321ddba80bdba7780944dc800634cd867397"
  ],
  "author": {
    "name": "Karthik Nayak",
    "email": "karthik.188@gmail.com",
    "time": "Tue Oct 07 14:11:30 2025 +0200"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Tue Oct 07 09:22:58 2025 -0700"
  },
  "message": "reftable: add code to facilitate consistency checks\n\nThe `git refs verify` command is used to run consistency checks on the\nreference backends. This command is also invoked when users run \u0027git\nfsck\u0027. While the files-backend has some fsck checks added, the reftable\nbackend lacks such checks. Let\u0027s add the required infrastructure and a\ncheck to test for the files present in the reftable directory.\n\nSince the reftable library is treated as an independent library we\nshould ensure that the library code works independently without\nknowledge about Git\u0027s internals. To do this, add both \u0027reftable/fsck.c\u0027\nand \u0027reftable/reftable-fsck.h\u0027. Which provide an entry point\n\u0027reftable_fsck_check\u0027 for running fsck checks over a provided reftable\nstack. The callee provides the function with callbacks to handle issue\nand information reporting.\n\nThe added check, goes over all tables in the reftable stack validates\nthat they have a valid name. It not, it raises an error.\n\nWhile here, move \u0027reftable/error.o\u0027 in the Makefile to retain\nlexicographic ordering.\n\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": "e11340c1ae77ba753cb02a39ec2de0e54b89e1f8",
      "old_mode": 33188,
      "old_path": "Makefile",
      "new_id": "0867ab5179d0ffa5bdc1739a7cece76ebe0858d5",
      "new_mode": 33188,
      "new_path": "Makefile"
    },
    {
      "type": "modify",
      "old_id": "5dd299b4962d847fc85db656b76a94da15fa0699",
      "old_mode": 33188,
      "old_path": "meson.build",
      "new_id": "82879fbfaa7cbee45375c417d70d95486e5c05c5",
      "new_mode": 33188,
      "new_path": "meson.build"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "26b9115b14acd8806bc73e8d242824bd6772a5a3",
      "new_mode": 33188,
      "new_path": "reftable/fsck.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "007a392cf906c7a69fdafc883deb8cc8ff386d49",
      "new_mode": 33188,
      "new_path": "reftable/reftable-fsck.h"
    }
  ]
}
