码迷,mamicode.com
首页 > 其他好文 > 详细

根据指定的commit查找对应的log

时间:2015-08-27 20:54:40      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:

find commit by hash sha in git

问题:

I need to find a commit in Git by given hash SHA. For example, if I have "a2c25061" hash, and I need to get the author and the committer of this commit.

What is the command to get that?

 

回答:

Just use the following command

git show a2c25061

 

 

举例:

supersocket中v1.6分支上,查找5db9e34

Administrator@LuJunTao MINGW64 /d/SourceCode/SuperSocket (demo|REBASE 1/6)
$ git show 5db9e34
commit 5db9e3407123bfb7a377dba59cb47748b37cef25
Author: Kerry Jiang <kerry-jiang@hotmail.com>
Date: Wed Aug 19 23:50:28 2015 +0800

fixed the bug m_CurrentSourceCount was not updated in SmartPool

diff --git a/Common/SmartPool.cs b/Common/SmartPool.cs
index 2b01ea2..639456f 100644
--- a/Common/SmartPool.cs
+++ b/Common/SmartPool.cs
@@ -332,7 +332,7 @@ namespace SuperSocket.Common
var newItemsCount = Math.Min(m_TotalItemsCount, m_MaxPoolSize - m_TotalItemsCount);

T[] items;
- m_ItemsSource[m_CurrentSourceCount] = m_SourceCreator.Create(newItemsCount, out items);
+ m_ItemsSource[m_CurrentSourceCount++] = m_SourceCreator.Create(newItemsCount, out items);

m_TotalItemsCount += newItemsCount;

 

根据指定的commit查找对应的log

标签:

原文地址:http://www.cnblogs.com/chucklu/p/4764128.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!