)]}'
{
  "commit": "05e2ab1f31dd79ab6e17fc8f69a640ac8d0169d5",
  "tree": "366c3f040b1f0a35379c26b259173bec0562d8ae",
  "parents": [
    "3fe92099860aabc8af341334562ff7cdb5e3a9a3"
  ],
  "author": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Thu Aug 13 12:12:34 2026 -0700"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Thu Aug 13 12:13:56 2026 -0700"
  },
  "message": "completion: \u0027git checkout\u0027 completes untracked paths as a last resort\n\nWe taught \u0027git checkout\u0027 to first try to complete revisions (unless\n\u0027--\u0027 is present on the command line) and, failing that, to complete\ntracked paths.  If this yields nothing, it lets the Bash default,\nwhich offers paths in $PWD, kick in.\n\nTeach it to complete untracked paths before giving up and letting\nthe Bash default kick in.  With this change,\n\n    $ git -C another-directory checkout un\u003cTAB\u003e\n\nfinds the \u0027untracked\u0027 file in another-directory and offers it as a\ncompletion candidate.\n\nNote that this is of somewhat dubious value, as an untracked path by\ndefinition does not exist in the index, so checking it out from the\nindex would not work well.  Even when used to check out the path\nfrom a different branch, it is still of dubious value because it is\nunlikely that a path tracked in another branch is lying untracked in\nthe working tree, as switching from a branch with the path to a\nbranch without it will normally remove the file in the working tree.\n\nA better behavior probably is to detect the tree-ish argument on\nthe command line and offer paths with the given prefix as candidates,\nbut there is no __git_complete_from_tree() helper readily usable,\nso mark this as #leftoverbits to wait for another day.\n\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0eecfcbf8bf66256302b6ba1959a3231b4987c6a",
      "old_mode": 33188,
      "old_path": "contrib/completion/git-completion.bash",
      "new_id": "e6dce62d3c3fb480de9706b0fc3e698c58b8b5c1",
      "new_mode": 33188,
      "new_path": "contrib/completion/git-completion.bash"
    },
    {
      "type": "modify",
      "old_id": "13fa5c65c32f3a1ff77534566919d51198780928",
      "old_mode": 33261,
      "old_path": "t/t9902-completion.sh",
      "new_id": "e8418f069b5a85b4b03efb5a547135613ea62309",
      "new_mode": 33261,
      "new_path": "t/t9902-completion.sh"
    }
  ]
}
