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

Re: sequencer status

From
Nicolas Morey-Chaisemartin <nicolas@morey-chaisemartin.com>
Date
Aug 24, 2017, 08:16 UTC
Message-ID
<b34e408e-a302-197a-5abd-d77f9fcaf5ea@morey-chaisemartin.com>
In-Reply-To
<xmqqshgiyxos.fsf@gitster.mtv.corp.google.com>
Le 23/08/2017 à 19:57, Junio C Hamano a écrit :
Show 26 quoted lines
> 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".

I like your idea. I'm not sure I have the bandwidth to do this (by myself at least). If someone (hopefully more familiar with the sequencer code than me) wants to work on this, I'd gladly help.

Nicolas
Previous: Junio C Hamano
Message 7 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.