Added TODO reminder

This commit is contained in:
Abdelilah El Aissaoui 2023-05-17 21:06:09 +02:00
parent 0212c8eb4b
commit 1facd863ba
No known key found for this signature in database
GPG key ID: 7587FC860F594869

View file

@ -20,6 +20,7 @@ class GetLogUseCase @Inject constructor() {
if (currentBranch != null || repositoryState.isRebasing) { // Current branch is null when there is no log (new repo) or rebasing if (currentBranch != null || repositoryState.isRebasing) { // Current branch is null when there is no log (new repo) or rebasing
val logList = git.log().setMaxCount(1).call().toList() val logList = git.log().setMaxCount(1).call().toList()
//TODO: Perhaps cache GraphWalk when the commitsLimit is too big? This would ensure a fast traversal of the commits graph but would use more memory. Benchmark it and perhaps offer the option as a setting
val walk = GraphWalk(git.repository) val walk = GraphWalk(git.repository)
walk.use { walk.use {