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

Re: git-mergetool to be used for rebases as well?

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 10, 2017, 20:26 UTC
Message-ID
<xmqqvatmr794.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170110185421.2638-1-sbeller@google.com>
Stefan Beller <sbeller@google.com> writes:
Show 30 quoted lines
>     $ git status
>         rebase in progress; onto ...
>         You are currently rebasing branch '...' on '...'.
>
>         Changes to be committed:
>                 modified:   ...
>
>         Unmerged paths:
>                 both modified:   ...
>
>     $ git mergetool
>         No files need merging
>     $ git diff <file name>
>         diff --cc <file name>
>         index ...
>         --- a/file
>         +++ b/file
>         @@@ ...
>           content
>         ++<<<<<<< HEAD
>          +  content
>         ++=======
>         +   content
>         ++>>>>>>> other commit
>         content
>
>
> The mergetool used to work apparently, but stopped for rebases.
> I noticed in neither t7610-mergetool.sh nor any rebase test the combination of
> rebase and mergetool is tested.

The above redacts too much to be useful for guessing, but are you by any chance being hit by a recent regression, i.e. have rerere enabled and running mergetool from a subdirectory?

See <20170109232941.43637-15-hansenr@google.com> (and previous rounds).

Previous: Stefan Beller
Message 2 of 2 in “git-mergetool to be used for rebases as well?”
  1. Stefan BellerJan 10, 2017
  2. Junio C HamanoJan 10, 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.