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

Re: [PATCH 1/2] New stg command: assimilate

From
CMCatalin Marinas <catalin.marinas@gmail.com>
Date
Oct 23, 2006, 11:52 UTC
Message-ID
<b0943d9e0610230452m70d25e91x9e9604ed4eac33ea@mail.gmail.com>
In-Reply-To
<20061022181256.GA30295@diana.vm.bytemark.co.uk>
On 22/10/06, Karl Hasselström <kha@treskal.com> wrote:
Show 19 quoted lines
> On 2006-10-22 19:43:08 +0200, Petr Baudis wrote:
>
> > Dear diary, on Sun, Oct 22, 2006 at 03:08:02PM CEST, I got a letter
> > where Karl Hasselström <kha@treskal.com> said that...
> >
> > > Introduce an "assimilate" command, with no options. It takes any
> > > GIT commits committed on top of your StGIT patch stack and
> > > converts them into StGIT patches.
> >
> > Hmm, isn't this what stg uncommit does?
> >
> > Well, I'm not sure if what uncommit takes is from below the stack or
> > above the stack, but if it's the former, it would still IMHO make
> > more sense to just tell that StGIT with a switch or something.
>
> Yes, you're correct in that uncommit and assimilate add existing
> commits to the StGIT stack, but in different ends: uncommit grows the
> stack by incorporating commits that precede it, while assimilate grows
> the stack by incorporating commits that follows it.

I think I also prefer a separate command for this as they have slightly different goals and users could easily confuse the options of a more powerful 'uncommit'.

-- 
Catalin
Previous: Karl HasselströmNext: Karl Hasselström
Message 5 of 9 in “Resistance is futile; you _will_ be assimilated ...”
  1. 0/2 Resistance is futile; you _will_ be assimilated ...Karl Hasselström, Oct 22, 2006
  2. 1/2 New stg command: assimilateKarl Hasselström, Oct 22, 2006
  3. Petr BaudisOct 22, 2006
  4. Karl HasselströmOct 22, 2006
  5. Catalin MarinasOct 23, 2006
  6. Karl HasselströmOct 25, 2006
  7. Catalin MarinasOct 25, 2006
  8. Karl HasselströmOct 26, 2006
  9. 2/2 Regression test for "stg assimilate"Karl Hasselström, Oct 22, 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.