{"thread":{"id":"3853","subject":"how to make a git-format patch","startedAt":"2006-04-12T10:28:01Z","lastAt":"2006-04-13T05:53:13Z","messageCount":5,"participants":["Aubrey","Jakub Narebski","Mathieu Chouquet-Stringer","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"18579","messageId":"6d6a94c50604120328ufa09f0do76c04472206ae15f@mail.gmail.com","threadId":"3853","inReplyTo":null,"subject":"how to make a git-format patch","fromName":"Aubrey","fromEmail":"aubreylee@gmail.com","sentAt":"2006-04-12T10:28:01Z","receivedAt":"2006-04-12T10:28:01Z","isPatch":false,"sender":{"key":"aubreylee@gmail.com","avatar":null},"body":"Hi list,\n\nWhen I use GIT to generate a patch, I can use git-diff, if one file\nchanged, I can get the following patch:\n=================================\ndiff --git a/net/packet/Kconfig b/net/packet/Kconfig\nindex 34ff93f..959c272 100644\n--- a/net/packet/Kconfig\n+++ b/net/packet/Kconfig\n@@ -17,7 +17,7 @@ config PACKET\n\n config PACKET_MMAP\n        bool \"Packet socket: mmapped IO\"\n-       depends on PACKET\n+       depends on PACKET && MMU\n        help\n          If you say Y here, the Packet protocol driver will use an IO\n          mechanism that results in faster communication.\n=================================\nBut I saw most of the git-format patches have a header in the front of\nthe patch file, like:\n=================================\n * Added xxxxxx support\n\nSigned-off-by: xxxxxxxx <xxxxxxx@email.com>\n---\n\n net/packet/Kconfig |   11 ++++++++++-\n 1 files changed, 10 insertions(+), 1 deletions(-)\n\ndiff --git a/net/packet/Kconfig b/net/packet/Kconfig\nindex 34ff93f..959c272 100644\n--- a/net/packet/Kconfig\n+++ b/net/packet/Kconfig\n\n----snip----\n=================================\n\nJust want to know how this kind of patch format generated.\nThanks for any hints.\n\nRegards,\n-Aubrey\n"},{"id":"18580","messageId":"e1inb0$o7n$1@sea.gmane.org","threadId":"3853","inReplyTo":"6d6a94c50604120328ufa09f0do76c04472206ae15f@mail.gmail.com","subject":"Re: how to make a git-format patch","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-04-12T11:12:44Z","receivedAt":"2006-04-12T11:12:44Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Aubrey wrote:\n\n> But I saw most of the git-format patches have a header in the front of\n> the patch file, like:\n> =================================\n>  * Added xxxxxx support\n> \n> Signed-off-by: xxxxxxxx <xxxxxxx@email.com>\n> ---\n> \n>  net/packet/Kconfig |   11 ++++++++++-\n>  1 files changed, 10 insertions(+), 1 deletions(-)\n> \n> diff --git a/net/packet/Kconfig b/net/packet/Kconfig\n> index 34ff93f..959c272 100644\n> --- a/net/packet/Kconfig\n> +++ b/net/packet/Kconfig\n> \n> ----snip----\n> =================================\n> \n> Just want to know how this kind of patch format generated.\n> Thanks for any hints.\n\nPerhaps git-format-patch(1) is what you want?\n\n-- \nJakub Narebski\nWarsaw, Poland\n"},{"id":"18582","messageId":"m3sloiriu7.fsf@localhost.localdomain","threadId":"3853","inReplyTo":"6d6a94c50604120328ufa09f0do76c04472206ae15f@mail.gmail.com","subject":"Re: how to make a git-format patch","fromName":"Mathieu Chouquet-Stringer","fromEmail":"ml2news@free.fr","sentAt":"2006-04-12T14:04:16Z","receivedAt":"2006-04-12T14:04:16Z","isPatch":false,"sender":{"key":"ml2news@free.fr","avatar":null},"body":"aubreylee@gmail.com (Aubrey) writes:\n> But I saw most of the git-format patches have a header in the front of\n> the patch file, like:\n\nI believe you're talking about 'git whatchanged -p' which not only displays\nthe diffs but also the commit comments.\n\n-- \nMathieu Chouquet-Stringer\n"},{"id":"18600","messageId":"6d6a94c50604122236i47f3c2e9s7656118eda95a2cd@mail.gmail.com","threadId":"3853","inReplyTo":"m3sloiriu7.fsf@localhost.localdomain","subject":"Re: how to make a git-format patch","fromName":"Aubrey","fromEmail":"aubreylee@gmail.com","sentAt":"2006-04-13T05:36:05Z","receivedAt":"2006-04-13T05:36:05Z","isPatch":false,"sender":{"key":"aubreylee@gmail.com","avatar":null},"body":"On 12 Apr 2006 16:04:16 +0200, Mathieu Chouquet-Stringer\n<ml2news@free.fr> wrote:\n> I believe you're talking about 'git whatchanged -p' which not only displays\n> the diffs but also the commit comments.\n\ngit whatchanged -p didn't include the signoff and howmany lines\nchanged which git-format-patch seems not include commit comments.\n\nIs there one command to merge the two kind of message?\n\nThanks,\n-Aubrey\n"},{"id":"18601","messageId":"7vveteyqba.fsf@assigned-by-dhcp.cox.net","threadId":"3853","inReplyTo":"6d6a94c50604122236i47f3c2e9s7656118eda95a2cd@mail.gmail.com","subject":"Re: how to make a git-format patch","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-04-13T05:53:13Z","receivedAt":"2006-04-13T05:53:13Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Aubrey <aubreylee@gmail.com> writes:\n\n> git whatchanged -p didn't include the signoff and howmany lines\n> changed which git-format-patch seems not include commit comments.\n>\n> Is there one command to merge the two kind of message?\n\nI think you already guessed it, judging from the Subject: line,\nbut the command is called \"git-format-patch\", and was around for\na long time.\n"}]}