From 964cf2d5dddb6645764feb943121e149a3af26a8 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Fri, 24 Mar 2017 03:38:31 -0400 Subject: [PATCH] Stops caching on reverse log --- src/gitService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitService.ts b/src/gitService.ts index 6b0fd59..7f909e0 100644 --- a/src/gitService.ts +++ b/src/gitService.ts @@ -504,7 +504,7 @@ export class GitService extends Disposable { Logger.log(`getLogForFile('${repoPath}', '${fileName}', ${sha}, ${range && `[${range.start.line}, ${range.end.line}]`}, ${maxCount}, ${reverse})`); let entry: GitCacheEntry | undefined; - if (this.UseGitCaching && !sha && !range && !maxCount) { + if (this.UseGitCaching && !sha && !range && !maxCount && !reverse) { const cacheKey = this.getCacheEntryKey(fileName); entry = this._gitCache.get(cacheKey);