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

Re: [PATCH 3/3] rebase -i: use "git sequencer--helper --reset-hard"

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 3, 2009, 08:03 UTC
Message-ID
<7vbpmxe32t.fsf@alter.siamese.dyndns.org>
In-Reply-To
<fabb9a1e0908022330l6d0ab44fwc1b6454ba67c9af1@mail.gmail.com>
Sverre Rabbelier <srabbelier@gmail.com> writes:
Show 10 quoted lines
> Heya,
>
> On Sun, Aug 2, 2009 at 23:29, Christian Couder<chriscool@tuxfamily.org> wrote:
>> This is part of my work to port git-rebase--interactive.sh to C using code
>> from the sequencer project. So the advantage is that it introduces and uses
>> the reset_almost_hard() function that will be used in the end when
>> everything is done by C code.
>
> Hmmm, that almost makes sense, but I don't see the new C code
> replacing any existing shell code, so what am I missing here?

More importantly, I found the "almost_hard()" function way underexplained. What it does (e.g. does --hard when able but otherwise gives up and falls back to something else?), why it is necessary (e.g. when should callers use it, instead of calling unconditional "reset --hard"?), what kind of preparation is necessary by the caller (e.g. should it read the index before calling the function? should it discard the index before?), and what kind of result should it expect (e.g. is it safe to write a tree out of the resulting index, or does it screw up the cache-tree and the caller should discard it before writing a tree?), etc. etc....

Previous: Sverre Rabbelier
Message 5 of 5 in “rebase -i: use "git sequencer--helper --reset-hard"”
  1. 3/3 rebase -i: use "git sequencer--helper --reset-hard"Christian Couder, Aug 3, 2009
  2. Sverre RabbelierAug 3, 2009
  3. Christian CouderAug 3, 2009
  4. Sverre RabbelierAug 3, 2009
  5. Junio C HamanoAug 3, 2009

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.