The first patch request

Source: Internet
Author: User
Tags install perl

It was a little relaxing yesterday and Saturday. There was nothing to write about yesterday after watching Apsara in the evening.

When I went to work in the morning, I changed the charging implementation, that is, I added a reg_read to a register in reg_write to judge the data in this register, determine whether to perform this write operation based on the current status of the register. It's easy. I fixed a bug and came back.

Relax for one afternoon and look at driver_core's git repo at night. Then I changed the format of a function definition column with more than 80 columns, and thought I should learn how to send the patch. For the first time, I had to learn it slowly and read some git manual, it was found that git was a little powerful. It was just over 1 o'clock last night and there was no time to summarize it. Let's sum up today. I may look back at this for many years. I think it's silly, and there may be a lot of errors, but the first step is always beautiful.

Changed twice and used git commit twice.

Then git format-patch-2 and two patches are created.

Then, use git send-email to send it out. Several modules of Perl must be installed during the sending process.

 
Git format-patch-2-s -- To = wanlong.gao@gmail.com -- cc = lengyuex@gmail.com

Two patches are created.

VI ~ /. Gitconfig

 
[User] Name = Wanlong Gao email = wanlong.gao@gmail.com [sendemail] smtpencryption = TLS smtpserver = smtp.gmail.com smtpuser = wanlong.gao@gmail.com smtpserverport = 587
 
The email address and server are configured here.
Run the send-Email manual command to install Perl.
 
# Cpin-I net: SMTP: SSL

This installation is a little troublesome.

 
Git send-Email 0001-fixed-the-format-of-column-longer-than-80.patch

Send the patch, haha. I sent it to Greg, but it was busy. If it wasn't for a bird, it didn't make sense. It's good to learn how to send it, haha.

You can fix the bug and send a patch later. Haha. Powerful, powerful.

I was very excited last night.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.