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

Re: sequencer status

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 23, 2017, 17:57 UTC
Message-ID
<xmqqshgiyxos.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<8e25c42f-80f2-e0d4-38e4-b4fe9c8074e0@morey-chaisemartin.com>
Nicolas Morey-Chaisemartin <nicolas@morey-chaisemartin.com> writes:
> Two questions:
> - Could this be a candidate for contrib/ ?
> - Would it be interesting to add the relevant code to sequencer.c
> so that all sequencer based commands could have a --status option

I actually think we would want a "git sequencer" command, which can be fed an arbitrary instruction sheet created by a third-party and told to "run" it. A new command $cmd that wants to rewrite history (like "rebase -i", "cherry-pick A..B", etc. do) can only concentrate on preparing the sequence of instructions and then internally invoke "git sequencer run" until it gives the control back to the end user. When the user tells $cmd to continue, it can relay that request to "git sequencer continue" under the hood.

Once its use is established, it might be even possible to let users run "git sequencer continue", bypassing frontends for individual commands, e.g. "git cherry-pick --continue", etc., but I do not know if that is generally a good idea or not. In any case, having such a front-end will help third-party scripts that want to build a custom workflow using the sequecing machinery we have.

And in such a world, we would need "git sequencer status" command to give us where in a larger sequence of instrutions we are.

So I tend to think this should be part of the core, not contrib/, and should become part of a new command "git sequencer".

Previous: Nicolas Morey-ChaisemartinNext: Nicolas Morey-Chaisemartin
Message 6 of 7 in “sequencer status”
  1. Nicolas Morey-ChaisemartinAug 23, 2017
  2. Christian CouderAug 23, 2017
  3. Nicolas Morey-ChaisemartinAug 24, 2017
  4. Matthieu MoyAug 24, 2017
  5. Nicolas Morey-ChaisemartinAug 24, 2017
  6. Junio C HamanoAug 23, 2017
  7. Nicolas Morey-ChaisemartinAug 24, 2017

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.