View the modification history of a file in git

Source: Internet
Author: User

Sometimes, when comparing the code, you can see some changes, but you do not know the author and cause of the changes or the corresponding bug number. That is to say, you cannot find the specific cause of these changes ~

[Note]: A file is modified for a limited number of times, and a commit description is provided for each code modification submission,



@ C1-System-Product-Name :~ /Data/android_code/packages/apps/vargoservice/src/CN/COM/Vargo/cloudservice/contacts $ git log -- pretty = oneline contactssyncservice. Java

13338d571a4743f8830081c911b4aebbb6680b89 added synchronization interface Data Query
@ C1-System-Product-Name :~ /Data/android_code/packages/apps/vargoservice/src/CN/COM/Vargo/cloudservice/contacts $ git log -- pretty contactssyncservice. Java
Commit 13338d571a4743f8830081c911b4aebbb6680b89
Author: liuyongsheng <[email protected]>
Date: Wed Mar 12 18:29:20 2014 + 0800


Added the synchronization interface for Data Query
@ C1-System-Product-Name :~ /Data/android_code/packages/apps/vargoservice/src/CN/COM/Vargo/cloudservice/contacts $ ^ C
@ C1-System-Product-Name :~ /Data/android_code/packages/apps/vargoservice/src/CN/COM/Vargo/cloudservice/contacts $ git show 13338d571a4743f8830081c911b4aebbb6680b89
Commit 13338d571a4743f8830081c911b4aebbb6680b89
Author:
Date: Wed Mar 12 18:29:20 2014 + 0800


Added the synchronization interface for Data Query


Diff -- git a/androidmanifest. xml B/androidmanifest. xml
Index bdebb94.. d90312e 100644
--- A/androidmanifest. xml
++ B/androidmanifest. xml
@-231,6 + 231,15 @@
<Action Android: Name = "com. iradar. aidl. remoteiradarvcloudservice"/>
</Intent-filter>
</Service>
+
+ <Service
+ Android: Name = "cn.com. Vargo. cloudservice. Contacts. contactssyncservice"
+ Android: exported = "true">
+ <Intent-filter>
+ <Action Android: Name = "android. content. syncadapter"/>
+ </Intent-filter>
+ <Meta-data Android: Name = "android. content. syncadapter" Android: Resource = "@ XML/syncadapter_contacts"/>
+ </Service>

</Application>
 
Diff -- git A/Res/XML/syncadapter_contacts.xml B/RES/XML/syncadapter_contacts.xml

View the modification history of a file in git

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.