)]}'
{
  "commit": "a6de316efde124a132d38e50c6407477df47f9cd",
  "tree": "080c3535e5603075f0fde9b33074f2129923993b",
  "parents": [
    "382f88157754097baad9fb0b45513d9e9135a63e"
  ],
  "author": {
    "name": "René Scharfe",
    "email": "l.s.r@web.de",
    "time": "Tue Aug 25 20:03:49 2026 +0200"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Tue Aug 25 12:35:30 2026 -0700"
  },
  "message": "worktree add: trim slashes when deriving branch name from path\n\nworktree_basename() sets `n` to the length of `path` without trailing\npath separators, not to the length of the basename.  This matters when\nderiving a branch name from a path with more than one component.  E.g.:\n\n   path: /new/worktree/\n   s:         ^\n   n:    |-----------|\n\nSo here xstrndup(s, n) copies up to 13 characters from \"worktree/\",\neffectively to the end of the string, including the trailing dash.\n\nPath separators are not allowed at the end of branch names, so strip\nthem off by calculating the basename length and extracting just that\npart.\n\nSigned-off-by: René Scharfe \u003cl.s.r@web.de\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "214de50d4c38d4ca1582e4c8d04c646c01c6895f",
      "old_mode": 33188,
      "old_path": "builtin/worktree.c",
      "new_id": "e5b7d6f5ec623b9cbcec7d96249561a69ff3b1a8",
      "new_mode": 33188,
      "new_path": "builtin/worktree.c"
    },
    {
      "type": "modify",
      "old_id": "4ffdd56fb4859b85f76d6daf653bd74315e31b9a",
      "old_mode": 33261,
      "old_path": "t/t2400-worktree-add.sh",
      "new_id": "9542a17cf38ef395b3946f77e93bee49c0f2077c",
      "new_mode": 33261,
      "new_path": "t/t2400-worktree-add.sh"
    }
  ]
}
