Question about "Creating first patch" guide

Karthik Nayak karthik.188 at gmail.com
Thu Sep 24 02:55:07 EDT 2015


On Thu, Sep 24, 2015 at 12:17 PM, 慕冬亮 <mudongliangabcd at gmail.com> wrote:
> 2015-09-24 13:56 GMT+08:00 Karthik Nayak <karthik.188 at gmail.com>:
>> On Thu, Sep 24, 2015 at 8:51 AM, 慕冬亮 <mudongliangabcd at gmail.com> wrote:
>>> I don't know whether my procedure to generate patch is right.Share it
>>> with you and you can comment it ,feed back to me!
>>>
>>> First, I change the document in the master branch, but don't commit to
>>> master branch. Then I use "git diff" to generate the patch.
>>
>> Why not commit?
>> A simple way to do this would be.
> Why do I not commit? Because I don't this easy method to generate patch file.
> I read SubmittingPatches, just to understand I can use git diff to get my patch.
> Then I don't search any advanced, good method.
> This shows that I am not familiar with git.
>

I personally suggest having a different branch for each feature/bug you might
want to work on and also committing these changes in their respective branches.

Why use 'diff' when 'git format-patch' is solely meant to create patches? ;)

-- 
Regards,
Karthik Nayak



More information about the Kernelnewbies mailing list