)]}'
{
  "commit": "e19831c94f91fd410fe001c0372b9c88b40d335b",
  "tree": "2e3b712b5322d40e514fe3dd16037c8b37433cda",
  "parents": [
    "cb56f55c16c128e18449c9417dc045f787c1b663"
  ],
  "author": {
    "name": "Eric Sunshine",
    "email": "sunshine@sunshineco.com",
    "time": "Tue Aug 28 17:20:23 2018 -0400"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Thu Aug 30 09:28:02 2018 -0700"
  },
  "message": "worktree: teach \u0027add\u0027 to respect --force for registered but missing path\n\nFor safety, \"git worktree add \u003cpath\u003e\" will refuse to add a new\nworktree at \u003cpath\u003e if \u003cpath\u003e is already associated with a worktree\nentry, even if \u003cpath\u003e is missing (for instance, has been deleted or\nresides on non-mounted removable media or network share). The typical\nway to re-create a worktree at \u003cpath\u003e in such a situation is either to\nprune all \"broken\" entries (\"git worktree prune\") or to selectively\nremove the worktree entry manually (\"git worktree remove \u003cpath\u003e\").\n\nHowever, neither of these approaches (\"prune\" nor \"remove\") is\nespecially convenient, and they may be unsuitable for scripting when a\ntool merely wants to re-use a worktree if it exists or create it from\nscratch if it doesn\u0027t (much as a tool might use \"mkdir -p\" to re-use\nor create a directory).\n\nTherefore, teach \u0027add\u0027 to respect --force as a convenient way to\nre-use a path already associated with a worktree entry if the path is\nnon-existent. For a locked worktree, require --force to be specified\ntwice.\n\nSigned-off-by: Eric Sunshine \u003csunshine@sunshineco.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "29a5b7e252a378b2f992bdeeb6c26cfe6f01f6b4",
      "old_mode": 33188,
      "old_path": "Documentation/git-worktree.txt",
      "new_id": "8537692f05ca7055078f2dff088680a44e6ade51",
      "new_mode": 33188,
      "new_path": "Documentation/git-worktree.txt"
    },
    {
      "type": "modify",
      "old_id": "1122f27b5f6033b09d0e3bd302df447a6a6c395b",
      "old_mode": 33188,
      "old_path": "builtin/worktree.c",
      "new_id": "3eb2f89b0f181909a16189de725d50c3bc351e4c",
      "new_mode": 33188,
      "new_path": "builtin/worktree.c"
    },
    {
      "type": "modify",
      "old_id": "67fccc6591da4397d8880c1dc3cc3af13c639357",
      "old_mode": 33261,
      "old_path": "t/t2025-worktree-add.sh",
      "new_id": "286bba35d8ae06f97cbf59263cd472975036deaa",
      "new_mode": 33261,
      "new_path": "t/t2025-worktree-add.sh"
    }
  ]
}
