Skip to content

Commit

Permalink
Optimizes graph log parsing & paging
Browse files Browse the repository at this point in the history
Adds graph.commitOrdering setting
  • Loading branch information
eamodio committed Sep 8, 2022
1 parent c35d4b9 commit 1263b33
Show file tree
Hide file tree
Showing 5 changed files with 458 additions and 407 deletions.
29 changes: 23 additions & 6 deletions package.json
Expand Up @@ -2092,10 +2092,20 @@
"title": "Commit Graph",
"order": 105,
"properties": {
"gitlens.graph.statusBar.enabled": {
"type": "boolean",
"default": true,
"markdownDescription": "Specifies whether to show the _Commit Graph_ in the status bar",
"gitlens.graph.commitOrdering": {
"type": "string",
"default": "date",
"enum": [
"date",
"author-date",
"topo"
],
"enumDescriptions": [
"Shows commits in reverse chronological order of the commit timestamp",
"Shows commits in reverse chronological order of the author timestamp",
"Shows commits in reverse chronological order of the commit timestamp, but avoids intermixing multiple lines of history"
],
"markdownDescription": "Specifies the order by which commits will be shown on the _Commit Graph_",
"scope": "window",
"order": 10
},
Expand All @@ -2104,14 +2114,21 @@
"default": 500,
"markdownDescription": "Specifies the default number of items to show in the _Commit Graph_. Use 0 to specify no limit",
"scope": "window",
"order": 50
"order": 20
},
"gitlens.graph.pageItemLimit": {
"type": "number",
"default": 200,
"markdownDescription": "Specifies the number of additional items to fetch when paginating in the _Commit Graph_. Use 0 to specify no limit",
"scope": "window",
"order": 60
"order": 21
},
"gitlens.graph.statusBar.enabled": {
"type": "boolean",
"default": true,
"markdownDescription": "Specifies whether to show the _Commit Graph_ in the status bar",
"scope": "window",
"order": 100
}
}
},
Expand Down
1 change: 1 addition & 0 deletions src/config.ts
Expand Up @@ -378,6 +378,7 @@ export interface GraphColumnConfig {
}

export interface GraphConfig {
commitOrdering: 'date' | 'author-date' | 'topo';
defaultItemLimit: number;
pageItemLimit: number;
statusBar: {
Expand Down

0 comments on commit 1263b33

Please sign in to comment.