【发布时间】:2017-06-21 13:13:48
【问题描述】:
我想查找系统历史的子目录中的更改。为此,我使用
git log -- $subdirectory
根据this,这就足够了。 “git log -- $subdirectory”的结果中有一些没有出现的提交;但是根据
git show $sha
,他们改变了子目录。
例如,在apache-accumulo 中,当我查看this 时使用
git show 31ee26b8ac41844f2a647a5d1484f47da731872a
,我看到它改变了“core/src/main”。更具体地说,我得到以下回复
commit 31ee26b8ac41844f2a647a5d1484f47da731872a
Author: Eric C. Newton <eric.newton@gmail.com>
Date: Wed Mar 11 14:37:39 2015 -0400
ACCUMULO-3423 fixed replication bugs with recent refactorings in StatusUtil
diff --git a/core/src/main/java/org/apache/accumulo/core/replication/StatusUtil.java b/core/src/main/java/org/apache/accumulo/core/replication/StatusUtil.java
index d8ec403..cdb6963 100644
--- a/core/src/main/java/org/apache/accumulo/core/replication/StatusUtil.java
+++ b/core/src/main/java/org/apache/accumulo/core/replication/StatusUtil.java
@@ -155,7 +155,7 @@ public class StatusUtil {
/**
* @return A {@link Status} for an open file of unspecified length, all of which needs replicating.
*/
- public static Status openWithUnknownLength(long timeCreated) {
+ public static synchronized Status openWithUnknownLength(long timeCreated) {
return INF_END_REPLICATION_STATUS_BUILDER.setCreatedTime(timeCreated).build();
}
diff --git a/server/tserver/src/main/java/org/apache/accumulo/tserver/log/TabletServerLogger.java b/server/tserver/src/main/java/org/apache/accumulo/tserver/log/TabletServerLogger.java
index 46101c1..498cbdd 100644
--- a/server/tserver/src/main/java/org/apache/accumulo/tserver/log/TabletServerLogger.java
+++ b/server/tserver/src/main/java/org/apache/accumulo/tserver/log/TabletServerLogger.java
@@ -319,7 +319,7 @@ public class TabletServerLogger {
// Need to release
KeyExtent extent = commitSession.getExtent();
if (ReplicationConfigurationUtil.isEnabled(extent, tserver.getTableConfiguration(extent))) {
- Status status = StatusUtil.fileCreated(System.currentTimeMillis());
+ Status status = StatusUtil.openWithUnknownLength(System.currentTimeMillis());
log.debug("Writing " + ProtobufUtil.toString(status) + " to metadata table for " + copy.getFileName());
// Got some new WALs, note this in the metadata table
ReplicationTableUtil.updateFiles(tserver, commitSession.getExtent(), copy.getFileName(), status);
;而
git log -- core/src/main | grep 31ee26b8ac41844f2a647a5d1484f47da731872a
不显示该提交。
我找不到任何答案!我将不胜感激任何见解!谢谢!
【问题讨论】:
-
在最初的问题中,我提到了“子模块”,而我的意思是“子目录”。很抱歉造成混乱
标签: git logging github accumulo