git patch comments

Stephen Gallagher sgallagh at redhat.com
Thu Jun 9 13:46:12 UTC 2011


On Wed, 2011-06-08 at 16:52 -0500, Michael Cronenworth wrote:
> I just realized git patches I have been applying to a local repository 
> are not saving the comments correctly.
> 
> The git patch has properly formatted, with newlines, comments. Some have 
> bullet points. When I run "git am ~/0001-fix.patch" the resulting git 
> history shows the git comment as all one line as the newlines have been 
> removed.
> 
> This:
> Git comment
>   - bullet 1
>   - bullet 2
> 
> Turns into:
> Git comment - bullet 1 - bullet 2
> 
> Am I using git incorrectly or is this a git bug?


I suspect that you are saving your patches with Windows line endings
instead of UNIX line endings, so when you import it on linux, they are
no longer available. Try running dos2unix on the file before importing
it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20110609/9a95fd4d/attachment.bin 


More information about the users mailing list