Re: [msysGit] Multi-line commit message changed to a single one

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 13, 2014 at 1:44 PM,  <jese.jlf@xxxxxxxxx> wrote:
> Hi,
>
>      Here is a simple script to show my problem. I don't know if it's a
> wrong operation (from me), a wrong configuration/parameter, or either a bug,
> but I don't get what I expected.
>      From a git repo (#1), I created a commit message containing two lines.
> Then I created a patch (git format-patch) and copy/paste it to another git
> repo (#2). When I import this patch (git am), the commit message is modified
> and both lines are "merged" to a single one.
>     Screenshot providen (repo1 : two separated lines, repo2 : a single line)
> with .sh script to reproduce the whole test-case.
>
> If someone could tell me what is wrong... Thanks in advance

This isn't unique to Git for Windows, I just tested on Linux and the
same occurs.

What seems to happen is that git format-patch puts both lines in the
subject of the e-mail, as you can find described here:

https://www.kernel.org/pub/software/scm/git/docs/git-format-patch.html

"By default, the subject of a single patch is "[PATCH] " followed by
the concatenation of lines from the commit message up to the first
blank line (see the DISCUSSION section of git-commit(1))."

So, this is entirely intentional, it seems.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]