HEAD で「現在の」blob oid のリストを取得する最良の方法は何ですか? 私は次のものを持っていますが、削除されたファイルなどを含む、リポジトリ内のすべての oid を返します。「削除された」ブロブには興味がありません。
return Repository.openBare( repoPath )
.then( (repo) => {
return repo.getHeadCommit()
.then( (commit) => {
return commit.getTree()
.then( (tree) => {
var arrayTreeEntry = tree.entries();
return Promise.all( arrayTreeEntry.map( (item) => {
return item.getBlob()
.then( (blob) => {
return blob.id().tostrS();
});
}));
});
});
});
前もって感謝します。