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

Re: StGIT loses Git commit using "stg repair"; I miss "stg assimilate"

From
David Kågedal <davidk@lysator.liu.se>
Date
Jan 7, 2008, 23:15 UTC
Message-ID
<87y7b1xm66.fsf@lysator.liu.se>
In-Reply-To
<873at9z0w2.fsf@lysator.liu.se>
David Kågedal <davidk@lysator.liu.se> writes:
Show 9 quoted lines
> Jakub Narebski <jnareb@gmail.com> writes:
>
>> I have StGIT branch with no patches applied: all patches are on stack.
>> I have accidentally added git commit on top of StGIT branch head.
>> I tried to use "stg assimilate" to turn this commit into StGIT commit, 
>> applied, but new version of StGIT has only "stg repair". And the 
>> sequence
>
> If you have no patches, there is nothing to assimilate or repair. Your
That should have been "if you have no patches *applied* ..."
Show 13 quoted lines
> patch stack is considered to be on top of your new commit, so if you
> push a patch it will appear on top of the commit you just created.
>
> To turn your new commit into a patch, use "stg uncommit".
>
>>  # stg repair
>>  # stg rebase origin
>>
>> made me lose this git commit (well, up to reflog of course). This should 
>> not happen! Why assimilate got removed?
>
> repair does exactly what assimilate did in this case, so it would not
> have helped you.
-- 
David Kågedal
Previous: David Kågedal
Message 3 of 3 in “StGIT loses Git commit using "stg repair"; I miss "stg assimilate"”
  1. Jakub NarebskiJan 7, 2008
  2. David KågedalJan 7, 2008
  3. David KågedalJan 7, 2008

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.