mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[git] set handler to the created record for debugging purposes
EA-83758
This commit is contained in:
@@ -90,6 +90,7 @@ public class GitLogUtil {
|
||||
for (String parent : record.getParentsHashes()) {
|
||||
parents.add(HashImpl.build(parent));
|
||||
}
|
||||
record.setUsedHandler(h);
|
||||
return factory.createShortDetails(HashImpl.build(record.getHash()), parents, record.getCommitTime(), root,
|
||||
record.getSubject(), record.getAuthorName(), record.getAuthorEmail(), record.getCommitterName(),
|
||||
record.getCommitterEmail(),
|
||||
@@ -121,6 +122,7 @@ public class GitLogUtil {
|
||||
List<GitLogRecord> records = parser.parse(output);
|
||||
for (GitLogRecord record : records) {
|
||||
if (record == null) continue;
|
||||
record.setUsedHandler(handler);
|
||||
|
||||
Hash hash = HashImpl.build(record.getHash());
|
||||
List<Hash> parents = getParentHashes(factory, record);
|
||||
@@ -286,6 +288,7 @@ public class GitLogUtil {
|
||||
try {
|
||||
GitLogRecord record = parser.parseOneRecord(output);
|
||||
if (record != null) {
|
||||
record.setUsedHandler(handler);
|
||||
converter.consume(record);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user