Skip to content

git: clarify that addAICoAuthor only applies to UI commits#309134

Open
yogeshwaran-c wants to merge 1 commit intomicrosoft:mainfrom
yogeshwaran-c:fix/git-coauthor-ui-only-clarify
Open

git: clarify that addAICoAuthor only applies to UI commits#309134
yogeshwaran-c wants to merge 1 commit intomicrosoft:mainfrom
yogeshwaran-c:fix/git-coauthor-ui-only-clarify

Conversation

@yogeshwaran-c
Copy link
Copy Markdown
Contributor

Summary

The git.addAICoAuthor setting only takes effect for commits made from the VS Code Source Control view; commits made from the command line are not affected because the extension does not install a prepare-commit-msg hook. The current setting description does not mention this, which can mislead users into expecting CLI commits to gain a Co-authored-by trailer too.

This PR updates the setting description to make the scope explicit.

Fixes #297415

Test plan

  • git.addAICoAuthor description in Settings UI shows the new wording explaining it only applies to commits made from the Source Control view
  • No code paths are affected; this is a string-only change in extensions/git/package.nls.json

Update the description for the git.addAICoAuthor setting to explicitly
state that it only takes effect for commits made from the Source Control
view. Commits made from the command line are not affected because the
extension does not install a prepare-commit-msg hook.

Fixes microsoft#297415
@vs-code-engineering
Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@lszomoru

Matched files:

  • extensions/git/package.nls.json

@dmitrivMS dmitrivMS added bug Issue identified by VS Code Team member as probable bug git GIT issues and removed bug Issue identified by VS Code Team member as probable bug git GIT issues labels Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

should git.addAICoAuthor setting specify which commits it supports?

2 participants