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

Re: [PATCH] status: fix branch shown when not only bisecting

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 1, 2023, 20:45 UTC
Message-ID
<xmqqtttia3vn.fsf@gitster.g>
In-Reply-To
<32997081-62d8-b900-d58a-308e5c773818@gmail.com>
Rubén Justo <rjusto@gmail.com> writes:
Show 11 quoted lines
>> When a sequencer is
>> driving a cherry-pick of master..topic1 and the user gets control
>> back in the middle, perhaps due to a conflict, should the user be
>> allowed to do "cherry-pick master..topic2", splicing these commits
>> from the other topic in the middle of the first cherry-pick session
>> the user started?
>
> We already prevent this to happen.  Maybe because we do not want to
> support multiple .git/CHERRY_PICK_HEAD files.  Anyway, to me, sounds
> like a reasonable thing to have: that nesting limit of 1.  The same for
> the other operations.

OK, as long as we prevent such kinds of questionable combinations ("two multi-commit cherry-picks" was merely an example---I did not mean that is the only problematic case), I do not see much problem with it. In any case, teaching "status" how to show such a state with less information loss, which is the theme of this patch, is not making things worse---even if some of the states may be nonsense and should be prevented, "git status" is not the place to do so anyway.

I didn't see if the proposed output from the command makes sense (yet), but somebody else may already have done so and writing their reviews on their findings. Let's see if we get any positive reviews and move it to 'next' after that.

Will queue in the meantime not to lose it in 'seen'.
Thanks.
Previous: Rubén JustoNext: Junio C Hamano
Message 4 of 7 in “status: fix branch shown when not only bisecting”
  1. status: fix branch shown when not only bisectingRubén Justo, Jul 30, 2023
  2. Junio C HamanoJul 31, 2023
  3. Rubén JustoAug 1, 2023
  4. Junio C HamanoAug 1, 2023
  5. Junio C HamanoAug 16, 2023
  6. status: fix branch shown when not only bisectingRubén Justo, Sep 9, 2023
  7. Junio C HamanoOct 16, 2023

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.