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

Re: Metadata for merge conflicts during rebase (to aid rustc) and potential for better user experience?

From
D. Ben Knoble <ben.knoble@gmail.com>
Date
Dec 22, 2025, 21:56 UTC
Message-ID
<CALnO6CAYaOQBOg+8pUZk95frML5tod+N_n3avxASRL10sLtwwA@mail.gmail.com>
In-Reply-To
<CAHnEOG2o784dk+OpkGt-1qjRJb34=sFMJvh-JRJ3v+GNBxFywQ@mail.gmail.com>
On Mon, Dec 22, 2025 at 9:31 AM Esteban Küber <esteban@kuber.com.ar> wrote:
>
> The questions I have are:
>  - can I *avoid* `--points-at` in any way to identify what branch we're
>    rebasing onto?
According to "git help rebase", ORIG_HEAD is not reliable but @{1} should be.
>  - is there already a better way to identify if the rebase was triggered by
>    `git rebase` or `git pull` (configured to rebase)?

I haven't studied the internals on this yet, but I think the common pattern is to look at REBASE_HEAD vs. MERGE_HEAD.

>  - if neither of the above has a "yes" answer, would git consider *adding*
>    that information, both for third-parties as well as to extend its own UI?

I think "git status" already shows some of this (maybe not the branches in question, but certainly the "it looks like you're in the middle of a rebase/merge/cherry-pick/etc.").

-- 
D. Ben Knoble
Previous: Esteban KüberNext: Esteban Küber
Message 2 of 5 in “Metadata for merge conflicts during rebase (to aid rustc) and potential for better user experience?”
  1. Esteban KüberDec 22, 2025
  2. D. Ben KnobleDec 22, 2025
  3. Esteban KüberDec 24, 2025
  4. Ben KnobleDec 27, 2025
  5. Phillip WoodJan 6, 2026

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.