)]}'
{
  "commit": "db8cba30cdb029ff8ef4f52824f4782e3c4077f7",
  "tree": "f4926aefa57bc270ca455cc540309bfc872d89ed",
  "parents": [
    "92c2312faa9be064ab67329d5f73e54afb172ac2"
  ],
  "author": {
    "name": "adityaanikam",
    "email": "adityanikam9502@gmail.com",
    "time": "Tue Sep 01 01:51:28 2026 +0530"
  },
  "committer": {
    "name": "Matthias Sohn",
    "email": "matthias.sohn@sap.com",
    "time": "Tue Sep 01 09:08:56 2026 +0200"
  },
  "message": "IndexDiffFilter: Don\u0027t drop untracked folders unrelated to a tracked change\n\nIndexDiffFilter.include() detects untracked folders by pushing each\ndirectory the working tree walk enters onto untrackedParentFolders, and\npopping folders off whenever it sees a tracked entry -- a folder\nsurvives on the stack only until the walk proves it contains something\ntracked.\n\nThe pop step scanned the HEAD and index trees at the current path and,\nwhenever either had a TREE there, called\nuntrackedParentFolders.clear() unconditionally. That is only correct\nwhen the tracked path is an ancestor of the folders on the stack. If\nsome unrelated tracked directory instead disappears from the working\ntree at the same walk position -- for example a staged deletion of the\nlast file under that directory -- it shows up as TYPE_MISSING in the\nworking tree but still TREE in HEAD, and clear() wipes out every\nfolder collected so far, including ones that have nothing to do with\nthat path. getUntrackedFolders() then silently drops them (gh-279).\n\nReplace the unconditional clear() with removeAncestorsOf(path),\nmirroring the ancestor-scoping copyUntrackedFolders() already uses:\nonly entries equal to, or nested under, the current path are removed;\neverything else stays on the stack.\n\nBug: jgit-279\nChange-Id: I414825b6e51dcd18729a8343b205f3c0eaf5c771\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "19281f6c993c2c22908cfd67587653a058c3cf4c",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit.test/tst/org/eclipse/jgit/api/StatusCommandTest.java",
      "new_id": "f8825f115890e2653305bd7816b2c69c5a1a5a02",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit.test/tst/org/eclipse/jgit/api/StatusCommandTest.java"
    },
    {
      "type": "modify",
      "old_id": "cfdc4dd3583860c5d6a61562cd59573796866b81",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit/src/org/eclipse/jgit/treewalk/filter/IndexDiffFilter.java",
      "new_id": "a866c4e0bac42aed786268a07af741daa598ce35",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit/src/org/eclipse/jgit/treewalk/filter/IndexDiffFilter.java"
    }
  ]
}
