diff --git a/package.json b/package.json index f844ef2..976e748 100644 --- a/package.json +++ b/package.json @@ -1838,7 +1838,7 @@ }, "gitlens.views.pageItemLimit": { "type": "number", - "default": 20, + "default": 40, "markdownDescription": "Specifies the number of items to show in a each page when paginating a view list. Use 0 to specify no limit", "scope": "window" }, diff --git a/src/views/nodes/branchNode.ts b/src/views/nodes/branchNode.ts index c596274..d23bb15 100644 --- a/src/views/nodes/branchNode.ts +++ b/src/views/nodes/branchNode.ts @@ -346,7 +346,9 @@ export class BranchNode private async getLog() { if (this._log == null) { // Ensure we always show all unpublished commits (and the upstream tip) - let limit = this.limit ?? this.view.config.defaultItemLimit; + let limit = + this.limit ?? + (this.view instanceof CommitsView ? this.view.config.pageItemLimit : this.view.config.defaultItemLimit); if (limit !== 0 && this.branch.state.ahead > limit) { limit = this.branch.state.ahead + 1; } diff --git a/src/views/nodes/fileHistoryNode.ts b/src/views/nodes/fileHistoryNode.ts index 32c7cc7..4094356 100644 --- a/src/views/nodes/fileHistoryNode.ts +++ b/src/views/nodes/fileHistoryNode.ts @@ -172,7 +172,7 @@ export class FileHistoryNode extends SubscribeableViewNode implements PageableVi private async getLog() { if (this._log == null) { this._log = await Container.git.getLogForFile(this.uri.repoPath, this.uri.fsPath, { - limit: this.limit ?? this.view.config.defaultItemLimit, + limit: this.limit ?? this.view.config.pageItemLimit, ref: this.uri.sha, }); } diff --git a/src/views/nodes/lineHistoryNode.ts b/src/views/nodes/lineHistoryNode.ts index 0c71011..0286557 100644 --- a/src/views/nodes/lineHistoryNode.ts +++ b/src/views/nodes/lineHistoryNode.ts @@ -302,7 +302,7 @@ export class LineHistoryNode extends SubscribeableViewNode implements PageableVi private async getLog(selection?: Selection) { if (this._log == null) { this._log = await Container.git.getLogForFile(this.uri.repoPath, this.uri.fsPath, { - limit: this.limit ?? this.view.config.defaultItemLimit, + limit: this.limit ?? this.view.config.pageItemLimit, ref: this.uri.sha, range: selection ?? this.selection, renames: false,