git log/show/HEAD step(2)

git log can see all commit log

#git log
commit 2737cfa37f81810072f074dcf19964be0a5eea2e (HEAD -> master, origin/master, origin/HEAD)
Author: panzidong <panzidong@com>
Date: Mon May 6 17:54:19 2019 +0800

+AHB-9 New Feature call mosquitto function and fix CMakeList.loop.txt wrong grammar

commit 9c754419ba7207e62c62ff1e2d223b114d93a475
Author: panzidong <panzidong@com>
Date: Mon May 6 16:08:33 2019 +0800

+AHB-8 New Feature spec mosquitto header file and mosquitto shared library path

commit 3c672f250abda068e4c54cba3e28d89bf8db6b3c
Author: panzidong <panzidong@com>
Date: Mon May 6 15:48:28 2019 +0800

#AHB-7 Change env for armhf cross compile

git show <sha1> shows the log message and textual diff 

# git show 2737cfa37f81810072f074dcf19964be0a5eea2e
commit 2737cfa37f81810072f074dcf19964be0a5eea2e (HEAD -> master, origin/master, origin/HEAD)
Author: panzidong <panzidong@com>
Date: Mon May 6 17:54:19 2019 +0800

+AHB-9 New Feature call mosquitto function and fix CMakeList.loop.txt wrong grammar

@@ -224,6 +225,21 @@ xt_s32 ParseOption(xt_s32 argc, xt_string *argv) {

diff --git a/main.c b/main.c
index b8167e1..c22f17b 100755
--- a/main.c
+++ b/main.c

void XlogInit(void) {
+
+}
+
+
+
+void mosquitto_test(void){
+
+ xt_s32 major = 0;
+ xt_s32 minor = 0;
+ xt_s32 revision = 0;
+ mosquitto_lib_init();
+ mosquitto_lib_version(&major, &minor, &revision);
+ mosquitto_lib_cleanup();
+ Xprintf("mosquitto version %d.%d.%d ",major,minor,revision);
+
}

原文地址:https://www.cnblogs.com/lianghong881018/p/10822533.html