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

Re: [PATCH] diff.c: Fix whitespace issues due to a mismerge(?)

From
Junio C Hamano <gitster@pobox.com>
Date
May 9, 2017, 02:06 UTC
Message-ID
<xmqqo9v26ax1.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170508184354.31671-1-sbeller@google.com>
Stefan Beller <sbeller@google.com> writes:
Show 14 quoted lines
> It looks like all these lines were introduced by one of the conflict chunks
> in 4af9a7d344 (Merge branch 'bc/object-id', 2016-09-19). Viewing that
> commit in gitk, the indentation seems fine, i.e. there is just one
> whitespace in front of the lines, as you would expect from a formatted
> patch.
>
> Signed-off-by: Stefan Beller <sbeller@google.com>
> ---
>
>  Junio, 
>  I do not think it is worth to apply this patch on its own,
>  but maybe it is worth to investigate your setup? (Assuming it is
>  git that did the merge, we may have a bug in whitespacing and
>  merge conflicts.)
Thanks for spotting.  

I do not think you have to worry about any bug in Git-the-program with this merge. If you try to reproduce the merge yourself (which by the way is easy to do, with "M=4af9a7d344 && git checkout $M^ && git merge $M^2"), you'll see that quite a lot of changes made to "builtin/apply.c" had to be hand-ported to the corresponding lines that are now in "apply.c" at the top-level, because in the meantime 13b5af22 ("apply: move libified code from builtin/apply.c to apply.{c,h}", 2016-04-22) moved things around while the merged side branch has been cooking.

It is very likely that manual killing and yanking in Emacs introduced the screw-up.

Previous: Stefan BellerNext: Junio C Hamano
Message 2 of 3 in “diff.c: Fix whitespace issues due to a mismerge(?)”
  1. diff.c: Fix whitespace issues due to a mismerge(?)Stefan Beller, May 8, 2017
  2. Junio C HamanoMay 9, 2017
  3. Junio C HamanoMay 9, 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.