From 1facd863ba6a2e15b0089eb0332aa64c23b254dd Mon Sep 17 00:00:00 2001 From: Abdelilah El Aissaoui Date: Wed, 17 May 2023 21:06:09 +0200 Subject: [PATCH] Added TODO reminder --- src/main/kotlin/com/jetpackduba/gitnuro/git/log/GetLogUseCase.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/com/jetpackduba/gitnuro/git/log/GetLogUseCase.kt b/src/main/kotlin/com/jetpackduba/gitnuro/git/log/GetLogUseCase.kt index a8f29c9..65c9a2c 100644 --- a/src/main/kotlin/com/jetpackduba/gitnuro/git/log/GetLogUseCase.kt +++ b/src/main/kotlin/com/jetpackduba/gitnuro/git/log/GetLogUseCase.kt @@ -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 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) walk.use {