Skip to content

Commit data with the user's Git identity - #20

Merged
gustmrg merged 1 commit into
mainfrom
fix/remote-commit-identity
Oct 21, 2026
Merged

gustmrg merged 1 commit into
mainfrom
fix/remote-commit-identity

Conversation

@gustmrg

@gustmrg gustmrg commented Oct 21, 2026

Copy link
Copy Markdown
Owner

Summary

Commits and merges DevLog makes in the data repository were always authored by DevLog <devlog@local>, even when Git had an identity configured, so the history was not attributed to the user.

Changes

  • Use the user.name and user.email Git is configured with for the data repository's commits and merges
  • Fall back to DevLog and devlog@local only for what Git lacks, so unattended syncs never stop to ask who is committing
  • Document the behavior under remote data synchronization

Compatibility

Existing commits keep their author; new ones use the configured identity.

Verification

  • go test -race ./... (new test for configured, partial, and missing identities; two-machine sync still merges)

Remote sync forced DevLog <devlog@local> on every commit and merge in the
data repository, overriding the identity configured in Git, so the
history was never attributed to the user. Use the configured name and
email, and fall back to DevLog's only for what Git lacks, so unattended
syncs still never stop to ask.
@gustmrg
gustmrg merged commit a5ed49e into main Oct 21, 2026
2 checks passed
@gustmrg
gustmrg deleted the fix/remote-commit-identity branch October 21, 2026 03:08
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.

1 participant