git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Allow deletion of several patches at once

From
CMCatalin Marinas <catalin.marinas@gmail.com>
Date
Nov 2, 2006, 10:36 UTC
Message-ID
<b0943d9e0611020236p60859a97ide18b95a2e069b1b@mail.gmail.com>
In-Reply-To
<20061101090714.2066.93948.stgit@localhost>
On 01/11/06, Karl Hasselström <kha@treskal.com> wrote:
> This is an updated patch, which uses parse_patches() to support patch
> ranges. It replaces patch 2/2 in the series; patch 1/2 (original
> delete regression test) is unaffected.

I applied it but added another commit to change the algorithm slightly. It now first checks whether the applied patches can be deleted before deleting any patch (I find this safer). It also checks for local changes, conflicts and HEAD == top only if you delete applied patches on the current branch. Actually, the HEAD == top test failed when deleting on a different branch, which is normal since the top is that of the other branch.

I'll make the changes public tonight.
Thanks.
Previous: Karl Hasselström
Message 8 of 8 in “Teach "stg delete" to delete several patches at once”
  1. 0/2 Teach "stg delete" to delete several patches at onceKarl Hasselström, Oct 22, 2006
  2. 1/2 Regression test for "stg delete"Karl Hasselström, Oct 22, 2006
  3. 2/2 Allow deletion of several patches at onceKarl Hasselström, Oct 22, 2006
  4. Karl HasselströmOct 22, 2006
  5. Catalin MarinasOct 23, 2006
  6. Karl HasselströmOct 23, 2006
  7. Allow deletion of several patches at onceKarl Hasselström, Nov 1, 2006
  8. Catalin MarinasNov 2, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.