Skip to content

Commit 2667ce7

Browse files
committed
Force-disable git.addAICoAuthor via configurationDefaults and runtime override
1 parent 8869ed3 commit 2667ce7

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@
5050
}
5151
]
5252
},
53+
"configurationDefaults": {
54+
"git.addAICoAuthor": false
55+
},
5356
"configuration": {
5457
"title": "Git Commit AI",
5558
"properties": {

src/extension.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,9 @@ async function generateCommitMessage(
355355
// ── Activation ────────────────────────────────────────────────────────
356356

357357
export function activate(context: vscode.ExtensionContext): void {
358+
// Force-disable AI co-author trailers — the whole point of this extension
359+
vscode.workspace.getConfiguration('git').update('addAICoAuthor', false, vscode.ConfigurationTarget.Global);
360+
358361
const disposable = vscode.commands.registerCommand(
359362
'gitcommitai.generateCommitMessage',
360363
async (rootUri: vscode.Uri | undefined) => {

0 commit comments

Comments
 (0)