Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
JGit を使用して、リポジトリをローカル ディスクにベアとしてクローンします。ここで、任意のコミット ID (SHA1) でファイルの内容を読み取る必要があります。これを行うにはどうすればよいですか?
これを使うことで. Iterable<RevCommit> gitLog = gitRepo.log().call();そのオブジェクトからすべてのコミット ハッシュを取得できます。
Iterable<RevCommit> gitLog = gitRepo.log().call();