From fcc9a27c7b7385692e84fdc4c04f942ec44a334c Mon Sep 17 00:00:00 2001
From: Tyler Johnson
Date: Wed, 15 May 2024 21:26:32 -0700
Subject: [PATCH] Adds feature #3297 - Setting for compact graph
---
package.json | 7 +++++++
src/config.ts | 1 +
src/plus/webviews/graph/graphWebview.ts | 5 +++++
src/plus/webviews/graph/protocol.ts | 1 +
.../apps/settings/partials/commit-graph.html | 12 ++++++++++++
5 files changed, 26 insertions(+)
diff --git a/package.json b/package.json
index 74c1379cc4b77..15a5426c30289 100644
--- a/package.json
+++ b/package.json
@@ -2814,6 +2814,13 @@
"scope": "window",
"order": 27
},
+ "gitlens.graph.useCompactByDefault": {
+ "type": "boolean",
+ "default": false,
+ "markdownDescription": "Specifies whether to default to using the compact graph layout in the _Commit Graph_",
+ "scope": "window",
+ "order": 28
+ },
"gitlens.graph.commitOrdering": {
"type": "string",
"default": "date",
diff --git a/src/config.ts b/src/config.ts
index f7804fd12c766..09ed0928e93a5 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -380,6 +380,7 @@ export interface GraphConfig {
readonly dimMergeCommits: boolean;
readonly highlightRowsOnRefHover: boolean;
readonly layout: 'editor' | 'panel';
+ readonly useCompactByDefault: boolean;
readonly minimap: {
readonly enabled: boolean;
readonly dataType: 'commits' | 'lines';
diff --git a/src/plus/webviews/graph/graphWebview.ts b/src/plus/webviews/graph/graphWebview.ts
index e79563eb4652f..d015c05dc23d7 100644
--- a/src/plus/webviews/graph/graphWebview.ts
+++ b/src/plus/webviews/graph/graphWebview.ts
@@ -1760,6 +1760,10 @@ export class GraphWebviewProvider implements WebviewProvider
+
+
+
+
+
+
+