)]}'
{
  "commit": "f778dd85269d6c5c0015eea0cf7429a4d3d8e7c5",
  "tree": "52f6c8e84f3a4a3f299a2d0904954e307acffa63",
  "parents": [
    "47c34809c8615e95382f85acd7902736c7d823a4"
  ],
  "author": {
    "name": "Ajay Gupta",
    "email": "ajagup@qti.qualcomm.com",
    "time": "Fri Sep 25 13:38:06 2026 +0530"
  },
  "committer": {
    "name": "Ajay Gupta",
    "email": "ajagup@qti.qualcomm.com",
    "time": "Mon Sep 28 14:15:06 2026 +0530"
  },
  "message": "RefDirectoryUpdate: remove empty parent dirs created for lock\n\nUpdating or deleting a ref first locks it, and LockFile.lock() creates\nthe ref\u0027s parent directories to hold the lock file. If the lock is\nreleased without being committed, the lock file is removed but the\ndirectories created for it are left behind. This happens when:\n\n- deleting a ref that only exists in packed-refs,\n- deleting a ref that does not exist,\n- an update is rejected, e.g. because the expected old value does not\n  match.\n\nOver time this accumulates many empty directories under refs/. For\nexample, an application that creates short-lived refs with unique\nmulti-level names and deletes them after they were packed by gc, or\ndeletes refs that were never created, left ~22k empty directories in\none repository. On NFS, scanning loose refs then took ~10s, which made\nevery full ref scan that slow.\n\nWhen releasing a lock that was not committed, delete the empty parent\ndirectories of the ref, as is already done when deleting a loose ref.\nSkip this if the ref was loose when it was locked, since its directory\nstill contains the ref file.\n\nChange-Id: I427b62c7dd252eb75dba3ca167fd6afaf6370d66\nSigned-off-by: Ajay Gupta \u003cajagup@qti.qualcomm.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "acc36d76f4978110da2225e7c7f69c1f25b0419a",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefUpdateTest.java",
      "new_id": "4ad30533001ddbde2dc7f0f988c54e3cfe7eef38",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefUpdateTest.java"
    },
    {
      "type": "modify",
      "old_id": "9e12ee8a0cde018bc97f124d6927f714dbe32f2e",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/LockFile.java",
      "new_id": "b2b4ab06c842eaa7c9c6260e58d03eb210f6bfc5",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/LockFile.java"
    },
    {
      "type": "modify",
      "old_id": "0d851727fd15a8b38373913ccefdda647aa5cb90",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/RefDirectory.java",
      "new_id": "ad98288d4cf0a13697ad2e00d9e0a0660ee5839f",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/RefDirectory.java"
    },
    {
      "type": "modify",
      "old_id": "436957bb24441469fe45166b50c2124ed1f320c5",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/RefDirectoryUpdate.java",
      "new_id": "3fa9cf5f7fd075a8b47f72e88f2720f8c3fe4f05",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/RefDirectoryUpdate.java"
    }
  ]
}
