Browse Source

Removes history limit for custom view

main
Eric Amodio 7 years ago
parent
commit
4221e06ae3
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/views/branchHistoryNode.ts
  2. +1
    -1
      src/views/statusUpstreamNode.ts

+ 1
- 1
src/views/branchHistoryNode.ts View File

@ -15,7 +15,7 @@ export class BranchHistoryNode extends ExplorerNode {
}
async getChildren(): Promise<ExplorerNode[]> {
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))];

+ 1
- 1
src/views/statusUpstreamNode.ts View File

@ -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))];

Loading…
Cancel
Save