Re: Question about "Creating first patch" guide

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

 



On Thu, Sep 24, 2015 at 12:17 PM, 慕冬亮 <mudongliangabcd@xxxxxxxxx> wrote:
> 2015-09-24 13:56 GMT+08:00 Karthik Nayak <karthik.188@xxxxxxxxx>:
>> On Thu, Sep 24, 2015 at 8:51 AM, 慕冬亮 <mudongliangabcd@xxxxxxxxx> 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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux