From: Junio C Hamano <gitster@pobox.com>
To: Johannes Sixt <j6t@kdbg.org>
Cc: "tobias.boesch@miele.com" <tobias.boesch@miele.com>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH] gitk: fix history window panes position
Date: Fri, 05 Dec 2025 16:22:48 +0900 [thread overview]
Message-ID: <xmqqzf7x75pz.fsf@gitster.g> (raw)
In-Reply-To: <db513191-5f3d-489e-b91a-a788f70b9e8c@kdbg.org> (Johannes Sixt's message of "Fri, 5 Dec 2025 07:40:01 +0100")
Johannes Sixt <j6t@kdbg.org> writes:
> Ah! You are absolutely right! Clearly, I wasn't fully taking in what
> git-am was telling me. The problem isn't the encoding. It's the patch
> text itself, in particular, the single SP needed for empty context lines
> is missing.
I do not think that is the case, either. diff.suppressBlankEmpty is
part of Git for quite some time. The "empty context lines can be
expressed as a totally empty line" was started at GNU IIRC, but I
think POSIX allows it these days. And we can take it, as you found
out with your "bla.patch" experiment below.
> I get this error when I apply the mbox containing the complete email:
>
> $ git am -3 --signoff ~/Mail/ambox
> warning: quoted CRLF detected
> Applying: gitk: fix history window panes position
> error: corrupt patch at line 40
> error: could not build fake ancestor
> Patch failed at 0001 gitk: fix history window panes position
> hint: Use 'git am --show-current-patch=diff' to see the failed patch
> hint: [...]
>
> But it is OK to copy the email body text to a file (which looks like
> mbox text) and apply that, despite the missing SP:
>
> $ git am -3 --signoff bla.patch
> Applying: gitk: fix history window panes position
> Using index info to reconstruct a base tree...
> A gitk-git/gitk
> Falling back to patching base and 3-way merge...
>
> Why is that?
So the reason you seek is because you are barking up a wrong tree?
There probably is something wrong in the patch text that has nothing
to do with diff.suppressBlankEmpty that you somehow "fixed" without
knowing when you massaged the e-mail message into the "bla.patch"
text yourself manually, if I have to guess.
prev parent reply other threads:[~2025-12-05 7:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-02 13:08 [PATCH] gitk: fix history window panes position tobias.boesch
2025-12-03 9:35 ` AW: " tobias.boesch
2025-12-03 10:15 ` Johannes Sixt
2025-12-04 8:39 ` AW: " tobias.boesch
2025-12-04 9:20 ` Johannes Sixt
2025-12-05 2:23 ` Junio C Hamano
2025-12-05 6:40 ` Johannes Sixt
2025-12-05 7:22 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqzf7x75pz.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=j6t@kdbg.org \
--cc=tobias.boesch@miele.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.