From 4221e06ae37769d63b6ee82aa80e90a8ee26b2f0 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 11 Sep 2017 00:41:32 -0400 Subject: [PATCH] Removes history limit for custom view --- src/views/branchHistoryNode.ts | 2 +- src/views/statusUpstreamNode.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/branchHistoryNode.ts b/src/views/branchHistoryNode.ts index c760751..310e249 100644 --- a/src/views/branchHistoryNode.ts +++ b/src/views/branchHistoryNode.ts @@ -15,7 +15,7 @@ export class BranchHistoryNode extends ExplorerNode { } async getChildren(): Promise { - const log = await this.git.getLogForRepo(this.uri.repoPath!, this.branch.name); + const log = await this.git.getLogForRepo(this.uri.repoPath!, this.branch.name, 0); if (log === undefined) return []; return [...Iterables.map(log.commits.values(), c => new CommitNode(c, this.template, this.context, this.git))]; diff --git a/src/views/statusUpstreamNode.ts b/src/views/statusUpstreamNode.ts index 64d86c5..3925e67 100644 --- a/src/views/statusUpstreamNode.ts +++ b/src/views/statusUpstreamNode.ts @@ -17,7 +17,7 @@ export class StatusUpstreamNode extends ExplorerNode { const range = this.direction === 'ahead' ? `${this.status.upstream}..${this.status.branch}` : `${this.status.branch}..${this.status.upstream}`; - let log = await this.git.getLogForRepo(this.uri.repoPath!, range); + let log = await this.git.getLogForRepo(this.uri.repoPath!, range, 0); if (log === undefined) return []; if (this.direction !== 'ahead') return [...Iterables.map(log.commits.values(), c => new CommitNode(c, this.template, this.context, this.git))];