Git patch Method

Source: Internet
Author: User

Git has many advantages over SVN, so I will not talk about it here. Here we mainly discuss the patch method.

1. Because someone else's comparison is usually used during the patch, you want to directly input the file to your own.

2. Use a web git server to view others' submission records:

For example:

Diff -- git a/mediatek/custom/common/hal/audioflinger/audio_customization_common.h B/mediatek/custom/common/hal/audioflinger/audio_customization_common.h

Index 3c6acb4 .. e8b83c7 100755 (executable)


--- A/mediatek/custom/common/hal/audioflinger/audio_customization_common.h
++ B/mediatek/custom/common/hal/audioflinger/audio_customization_common.h
@-25, 7 + 25, 7 @@
* Define this will enable audio compensation filter for loudspeaker
* Please see ACF document for detail.
**************************************** *************/
-// # Define enable_audio_compensation_filter
+ # Define enable_audio_compensation_filter
 
/*************************************** ************
* Define this will enable DRC for loudspeaker.


3. Copy the above information and save it to a file. You can name it by yourself. It is called patch.


4. Copy the patch to the project root directory. My root directory is/home/stonechen/SVN/aw598_0728/mt6572_cwet_kk.


5. Key: Execute patch-P1 <patch in the root directory.


5. If the patch is successful, the following message is displayed: patching file mediatek/custom/common/hal/audioflinger/audio_customization_common.h --------- success. Congratulations, you have successfully installed the patch.



This method is suitable for beginners.


Related Article

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.