From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.46 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796143179; b=vPIfKTzSn02dT5f5iKkcJPBMWeIwmNgYqBHtFDPwZmkoffjy9pCbo22L6XDOmxR111KK DPyGz4xFcCoQeJtBIby5e6aMMOTt5nZsot9O7+VQGDLjQgZuOo6/hpBrA3iusl853Baqw 4tulcZ7C/SlPL1oJwkY2L4abCu7QLIu/eKSGvNp2hz4k9fr7hYqRAX6hCRZ5ctlnXkrq0 +h9UWiyB/2+W6rfZa+gpaGUgfA/mqm5p2q72e8FNuCopqF1vEWNeegcFRRHeHxJyljwj8 ZRhA1256A5HxucWum9CqBTVUxFa/VeH8p0QYtlsk8Q90s7z31ip+d3/qsrAjuw8M06Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796143179; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:From:Reply-To:Subject:To:Cc: References:Content-Language:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=UUjU6KQxLquZFTg+9w1GAuVD6xtflrQKtvW2qlyvnww=; b=JDcv94udPVJ3Uy/cGDgbzjFU+0iePjDvJZcSh6R5gXSNmV7XkDNEV458VNA3q32pGGXo RHaHjsnDOMpT2wnncDVj+0OgFMr1AOER5bJ13Le5k1oRAJhsL9POrV4MROw/xM6lkqNxE R3vWxzMsOG/fpndA2U92AdoXHtkrYB608bXcH0yCozfG0GoQZDxgfnPWi1VVkNdUhDOxj AYUG89BCbOFgvsUOz2+bURICkl7m+AdDxwsYgGARW+v7uH/svaxivS4qpOJFKNuWmxHS0 PxcNiayIbr09wm6agc6PUa6otFKkslVSSxWGXM6w01Vn7F2ujQbpYGl+hZv1xsMaA/g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ppYU6NXb; arc=none smtp.remote-ip=209.85.221.46 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7015606A31A for ; Tue, 1 Dec 2026 16:39:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D7015606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ppYU6NXb Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-491846221ffso10551287f8f.3 for ; Tue, 01 Dec 2026 08:39:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796143177; x=1796747977; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :references:cc:to:subject:reply-to:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=UUjU6KQxLquZFTg+9w1GAuVD6xtflrQKtvW2qlyvnww=; b=ppYU6NXbEkC15mYE1pf2b3EJTRwBDbHWjGFdtWwtqCxWb6IhK+7EjyEnuZeDnnlXx4 Ph4LBsjNE7d6DYTypS+Fk1ksdssE0v9b1QESeh7Q8tL45X57KOzscY6f7okBcaQQOPS2 EcbMhoWdGq1bkxQLAugFun8qvbc873yY0EqoNPBzScP2eCId9KQZEfKoeOY66Ck8G9l8 o8hqKeC5bbYudlq0QhRQtEZF42UJXAyplYOEgV1ME7MbdjX88qkPQAcwZPMgskVIw8s/ ReNALpGygxoafiqGbgSFvER+/Kb5kSgl4ez4lrujRgOPka5/EJ4MDFW/L8pqCqJIEuSP af7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796143177; x=1796747977; h=content-transfer-encoding:content-type:in-reply-to:content-language :references:cc:to:subject:reply-to:from:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=UUjU6KQxLquZFTg+9w1GAuVD6xtflrQKtvW2qlyvnww=; b=139+itJ9nEuhr+RebWSpWQKaJ6b4FZFq/TLoNysrgeIYfgvuxwz60bFvYB5nSSSvic PDfkG/exJHUNTsg+9uYkl/koBnBMcoQ9A1XX7PR0YPnIsudkSZJQpWhHeLfZ/dKiXluQ LvWqlvt7MCOhB/Lpl75ZyFbAWjfoxcZN3+nuxXTNRbIXJOfpoyfyjjHueZEj9h/EK6HZ OBPpfyhrvV4rrc3lHLnmMvvCHMkyjdyR2X2yFpKJVsOiMr1s/xHij2TZOYpJrYVD81v1 2o1lUz7MizinwyCCX4isO6j2avuwiZjw4YQOSegwDU5pWUVwU64E6ffe+68MsZNn2Nj0 sxZg== X-Forwarded-Encrypted: i=1; AL+hErHLT7bGnczx5J66a1jfS/rkaZt9K2tTsXVpjU0nwrQXCJ0DMn2yhlsoCrZKDUZq/ebBLLc=@vger.kernel.org X-Gm-Message-State: APuU4Z+u4Y+7Wbb1RgLCPgUbgMZJ5GNh1pPKXbVtRYh31J8R2At6y1e1 sQGo5l7K95r7XTb1VRX3F1OIGcloigtbB+K6/f5FIivEFCTNnt6hOUv3 X-Gm-Gg: AZFdTZf1ndpUDht7/Ha4gTo+ZFzfieNZ+BiPc0BTiZHBFaX0XfWxFQx4av1nH0+ss0T zBLLWWf1Bk7iS2GxLXrHFRsJQsqrMQkG8DQsji7Trqa6esNCYJ83wO8NbJNSwsstYogUYALKgrl Pa3A0gUEA6vXNZ9WbZTK7/I+3UdX62SVV6VitTAX/dCnV0kWBYsvxOjD3kWt8zZlYY0vPKxhmMv j59/VI5g08RrmLzYZAQvP72DnFhaqCKu4YsQtBzhp6BfTVebDGFf+vmz6IDZU8Qfz5Pbl9Sxvqj ULL0m9dc1eMhrHJNu9hFa4YE2NelG68FgppuLfkQBj7Tsm2HMsJ3Rv0JQy09bQibu3190IYrjUo 0lQwW8Oq3+BGs2pfvl7Xw79a8XGNCtImE+uh/QNlDSGu7SPaduPC+77cnsTNXjpCZlZaVhFtZ/I 4Ln8aXqituDKCZBrp0MKzghdtzQVoH5z5UJ1C7Iwh1fSgUjY3lb89u1vMk7UREFUheN1dLeVBxy /RpwLNV3zGUX9Pbrwy7rRD1BZ8R4JDRwx/vBdResDRi3H/8sLNHOSrRisgqJ/juUNJfhAxp8Sut E5VxWJ7aQxz3sxYjGXxCAE3CPjnCSLw+oRSEa0Mym7czEJcG799nu5SgwBczqDVP/WsdVu2G0dC wl9sh7A== X-Received: by 2002:a05:6000:4013:b0:4a7:d4c9:ea03 with SMTP id ffacd0b85a97d-4abaac57bb5mr69045495f8f.6.1796143177121; Tue, 01 Dec 2026 08:39:37 -0800 (PST) Received: from ?IPV6:2a0a:ef40:724:6601:f3ff:aebc:61f8:d91f? ([2a0a:ef40:724:6601:f3ff:aebc:61f8:d91f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6baa397asm72435826f8f.48.2026.12.01.08.39.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Dec 2026 08:39:36 -0800 (PST) Message-ID: Date: Tue, 1 Dec 2026 16:39:35 +0000 X-Mailing-List: git@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Phillip Wood Reply-To: phillip.wood@dunelm.org.uk Subject: Re: [PATCH v2] history: refuse to rewrite branches used by other worktrees To: Aniket Gupta , phillip.wood@dunelm.org.uk Cc: Toon Claes , Patrick Steinhardt , Junio C Hamano , Nikita Bobko , git@vger.kernel.org References: <20261123103911.98860-1-aniketgupta3001@gmail.com> <20261127173252.7794-1-aniketgupta3001@gmail.com> <03c0d1e1-83c5-4324-b1c9-8023edc4b09e@gmail.com> <20261130171318.65085-1-aniketgupta3001@gmail.com> Content-Language: en-US In-Reply-To: <20261130171318.65085-1-aniketgupta3001@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Aniket On 30/11/2026 17:13, Aniket Gupta wrote: > >> A branch that is being bisected in the current worktree cannot be >> rewritten because ... (is there actually a good reason?) > > I rewrote the branch by hand while it was being bisected in the current > worktree and in a different one. Bisect could continue and "git bisect > reset" checked out the rewritten branch without problems. One thing I > noticed is that the result points to a commit from the old history, > which is no longer on the branch. I included this check because "git > branch -f" and "git rebase --update-refs" also leave a branch alone > while it is being bisected. I am in favour of keeping it. Suggestions?u I'm happy to keep the check if we have a good explanation as to why in the documentation. Thanks Phillip