* Re: Multi-line commit message changed to a single one
[not found] <b1056272-4b49-439e-a071-88b4262066bb@googlegroups.com>
@ 2014-06-13 13:40 ` Erik Faye-Lund
0 siblings, 0 replies; only message in thread
From: Erik Faye-Lund @ 2014-06-13 13:40 UTC (permalink / raw)
To: jese.jlf; +Cc: msysGit, GIT Mailing-list
On Fri, Jun 13, 2014 at 1:44 PM, <jese.jlf@gmail.com> 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.
--
--
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.
You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en
---
You received this message because you are subscribed to the Google Groups "msysGit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to msysgit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-06-13 13:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <b1056272-4b49-439e-a071-88b4262066bb@googlegroups.com>
2014-06-13 13:40 ` Multi-line commit message changed to a single one Erik Faye-Lund
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).