【发布时间】:2019-07-24 17:58:35
【问题描述】:
使用 JGit,我检查了一个分支 (branch1)。一段时间后,我想 fetch() 并查看自上次获取以来哪些文件已更新(在源中)。
FetchResult fetchResult = m_git.fetch().setRefSpecs(new RefSpec("refs/heads/branch1")).call();
// For example:
fetchResult.getUpdatedFiles()
我该怎么做?
【问题讨论】: