Skip to content

Enforce configured host Git identities#938

Merged
chubes4 merged 1 commit into
mainfrom
feat/933-git-identity
Jul 21, 2026
Merged

Enforce configured host Git identities#938
chubes4 merged 1 commit into
mainfrom
feat/933-git-identity

Conversation

@chubes4

@chubes4 chubes4 commented Jul 21, 2026

Copy link
Copy Markdown
Member

Summary

  • add generic host-scoped Git identity policy resolution
  • enforce exact configured name and email before commits and internal squash/rebase pushes
  • write configured identities to worktree-local Git config during managed worktree creation
  • preserve normal ambient Git identity behavior for unconfigured hosts

Compatibility

Unconfigured hosts retain existing Git behavior. Integrations opt into enforcement through the generic policy filter.

How to test

  1. Run php tests/workspace-git-identity-policy.php.
  2. Run php -l inc/Workspace/WorkspaceGitIdentityPolicy.php.
  3. Run composer validate --no-check-publish.

Closes #933

@chubes4
chubes4 merged commit 75bdbf6 into main Jul 21, 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.

Enforce generic host-scoped Git identity on managed commit paths

1 participant