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

Re: Stg AssertionError in sink command

From
Karl Hasselström <kha@treskal.com>
Date
Sep 15, 2007, 23:52 UTC
Message-ID
<20070915235221.GE25507@diana.vm.bytemark.co.uk>
In-Reply-To
<b0943d9e0709151537k51f2f8d5w5a9bbfef84f82747@mail.gmail.com>
On 2007-09-15 23:37:21 +0100, Catalin Marinas wrote:
Show 8 quoted lines
> The initial implementation of hide/unhide was to preserve the patch
> position in the stack. This behaviour was really confusing for
> people since pushing a patch after the hidden one actually forced
> the pushing of the hidden patch, which isn't normally shown by
> 'series'. I decided afterwards to create a third category of patches
> - 'hidden' (the other two being applied and unapplied). This cleared
> the unpredictable behaviour when pushing since hidden patches cannot
> be pushed.

I agree that the new semantics is way saner (though I'm still not entirely convinced that hiding patches is a good idea in the first place). But the man pages should probably point out clearly that hidden patches must be unapplied.

Show 9 quoted lines
> Karl's patch does the correct thing of raising an error if sinking
> below an unapplied patch.
>
> Regarding the reordering of the unapplied patches, at the moment you
> can (but I *don't* recommend) edit .git/patches/<branch>/unapplied.
> Maybe the 'float' and 'sink' functionality could be modified to also
> act on unapplied patches (with a --unapplied option). I don't think
> a separate command would be needed as it duplicates a lot of
> functionality from the above.

Why the extra option? Just do the right thing, since it's unambiguous what the right thing is.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Catalin Marinas
Message 2 of 2 in “Re: Stg AssertionError in sink command”
  1. Catalin MarinasSep 15, 2007
  2. Karl HasselströmSep 15, 2007

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.