From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A0B105EE71 for ; Tue, 23 Jan 2024 14:25:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706019946; cv=none; b=GMbftxo5tiaKpKPvKNhlCLv7lpZKHb+UltrqKvnE8arbn/3C+IUDyYRCUHkCzRlAdSiN2+49pZ/0Z0cxP8qVxt6bbS1vXrBX4JGrxNG6T486jlIKkKVmDU4BhcrkKuelixAr8uM16++CMMadwOSICYhjz0tudcj1ThrBfDPeXu4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706019946; c=relaxed/simple; bh=pz9Ur9sHzHpI3pQcnw1/fXyy2YZgT5FTukDtphId5eM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=pm8Qh6UmtclyGyb8wBfNbbffAG3Iy/hM2c15tRdhRYNlpifMidnm1/GHQI/PIeUhWuxp1I9ez6Ildp7a3StT8rhDdZOKeH40FzrCiYOvHXPtxtkYk3Dg1QGg5lyWSm0bTpHXSExk+AyOe5RH9S76Sdm2SMT/M2NoALR0JaKtp+o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gRDSLz1x; arc=none smtp.client-ip=209.85.128.42 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.b="gRDSLz1x" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-40e80046246so26427065e9.1 for ; Tue, 23 Jan 2024 06:25:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706019943; x=1706624743; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:reply-to:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=8ydMECxJ9D8QlrY0i26u9VnQ7SBgTt/AoYJpk/ioaqQ=; b=gRDSLz1x4m+rj6ahrc6QhGXxy7/R4FkSFYmiYgMxeRnJt7yUUS02yqaRLJNiGWorLF 4PpPV0nN9w8nKIEK/+nw/bo0UazihkWFuG25dDjTBaXGjkDhIliIzZWnpEtbjVhX0woQ 3nUj9DHlImtNJTpCuSpmJdlVitmyuW37wGIk+ctVtQBXk6BJz+Wty125rU7Keu+fK5dA E/thtvmI7pLe22jCq1IQyXqgvvAKQMuu2CmMO9VUy+yParAE11EuXYw9A0GpnM4BdqLK NcjsW4ZMCXoStJdUgV0ovWcMuJD9YhYDWYuf5zhwNtKqYXLBjE7tBn9XMWctItn/shS4 dhHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706019943; x=1706624743; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:reply-to:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8ydMECxJ9D8QlrY0i26u9VnQ7SBgTt/AoYJpk/ioaqQ=; b=c2DHc4nZgYvDB79anh22wZNNbvPIIdD1aTJwqUPRPRm91x4LmqqzDQIVr4LDjmYro6 lkVwJtkyJYUAfb3+chZxCRvC00QtFJvVCi9VtpV7Ox3u0M2IQJlShMbgw6akNRRjl/wZ htRuHko+ayy5E7oIDILWCDEHG2+XoY/gi/zYcmOKi+ZzyGyGmqYQhN90j9e5xm4MdLX6 /J1+DhjBd9N5HaIK0xVRN5g9IXUiu2WDGZAoePngFDP9Ql4xqF1f9ZUHj0YAdz7m8rYg hVSBDbyudvtv8/4VdHuDRtu0rSFWUO/SVhWTawfU2rwqvXc3rtN4+zAK1hRY+v+Z9vnZ QnoQ== X-Gm-Message-State: AOJu0Yx5ZvhOyrotzIOkZh13a0g8Y4REO2cD4OKksVVyIoFueGogNHY6 7iOUtYUM72hyRu6/ksfV+4RMrzavvXfEQNWMWRRlfn5iurTEcRbpL7i6rTto X-Google-Smtp-Source: AGHT+IH7XFDyQcVTYzGkmLY7Ugv6lP0Dpth42EiXxVpV8Otk19CjsXFFlg0+nFDItWvWumZEQJWJwQ== X-Received: by 2002:a05:600c:4ec9:b0:40d:92b7:112f with SMTP id g9-20020a05600c4ec900b0040d92b7112fmr198260wmq.114.1706019942637; Tue, 23 Jan 2024 06:25:42 -0800 (PST) Received: from [192.168.1.101] ([84.64.64.237]) by smtp.googlemail.com with ESMTPSA id q12-20020adfab0c000000b00337d8c40ff7sm12505590wrc.3.2024.01.23.06.25.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Jan 2024 06:25:42 -0800 (PST) Message-ID: Date: Tue, 23 Jan 2024 14:25:43 +0000 Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: phillip.wood@dunelm.org.uk Subject: Re: [PATCH 4/4] cherry-pick: Add `--empty` for more robust redundant commit handling Content-Language: en-US To: brianmlyles@gmail.com, git@vger.kernel.org Cc: me@ttaylorr.com, newren@gmail.com References: <20240119060721.3734775-2-brianmlyles@gmail.com> <20240119060721.3734775-5-brianmlyles@gmail.com> From: Phillip Wood In-Reply-To: <20240119060721.3734775-5-brianmlyles@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Brian On 19/01/2024 05:59, brianmlyles@gmail.com wrote: > From: Brian Lyles > > As with `git-rebase` and `git-am`, `git-cherry-pick` can result in a > commit being made redundant if the content from the picked commit is > already present in the target history. However, `git-cherry-pick` does > not have the same options available that `git-rebase` and `git-am` have. > > There are three things that can be done with these redundant commits: > drop them, keep them, or have the cherry-pick stop and wait for the user > to take an action. `git-rebase` has the `--empty` option added in commit > e98c4269c8 (rebase (interactive-backend): fix handling of commits that > become empty, 2020-02-15), which handles all three of these scenarios. > Similarly, `git-am` got its own `--empty` in 7c096b8d61 (am: support > --empty=