diff --git a/package.json b/package.json index 583e86dc..dd60f46d 100644 --- a/package.json +++ b/package.json @@ -1067,6 +1067,11 @@ "default": false, "markdownDescription": "Only follow the first parent of commits when discovering the commits to load in the Git Graph View. See [--first-parent](https://git-scm.com/docs/git-log#Documentation/git-log.txt---first-parent) to find out more about this setting. This can be overridden per repository in the Git Graph View's Repository Settings Widget." }, + "git-graph.repository.selectMultipleAuthors": { + "type": "boolean", + "default": true, + "description": "Enables the selection of multiple authors from the Authors dropdown." + }, "git-graph.repository.selectMultipleBranches": { "type": "boolean", "default": true, diff --git a/src/config.ts b/src/config.ts index 5e064a75..1cecf612 100644 --- a/src/config.ts +++ b/src/config.ts @@ -450,6 +450,13 @@ class Config { return !!this.getRenamedExtensionSetting('repository.onlyFollowFirstParent', 'onlyFollowFirstParent', false); } + /** + * Get the value of the `git-graph.repository.selectMultipleAuthors` Extension Setting. + */ + get selectMultipleAuthors() { + return !!this.config.get('repository.selectMultipleAuthors', true); + } + /** * Get the value of the `git-graph.repository.selectMultipleBranches` Extension Setting. */ diff --git a/src/gitGraphView.ts b/src/gitGraphView.ts index 2e058285..aea8202c 100644 --- a/src/gitGraphView.ts +++ b/src/gitGraphView.ts @@ -691,6 +691,7 @@ export class GitGraphView extends Disposable { onRepoLoad: config.onRepoLoad, referenceLabels: config.referenceLabels, repoDropdownOrder: config.repoDropdownOrder, + selectMultipleAuthors: config.selectMultipleAuthors, selectMultipleBranches: config.selectMultipleBranches, showRemoteBranches: config.showRemoteBranches, showStashes: config.showStashes, @@ -719,12 +720,13 @@ export class GitGraphView extends Disposable { } else if (numRepos > 0) { const stickyClassAttr = initialState.config.stickyHeader ? ' class="sticky"' : ''; const branchDropdownLabel = initialState.config.selectMultipleBranches ? 'Branches' : 'Branch'; + const authorDropdownLabel = initialState.config.selectMultipleAuthors ? 'Authors' : 'Author'; body = `