Relationships
#2118 git: no way to set author/committer dates on commit
Opened by kagarmoe · 9/12/2026· Shipped 9/16/2026
The commit method sets author identity via 'git -c' flags but has no input for author or committer dates, and _lib/runner.ts spawns git via Deno.Command without an 'env' option, so GIT_AUTHOR_DATE / GIT_COMMITTER_DATE cannot be injected externally either.
Use case: reconstructing or simulating history, importing from another VCS, or any workflow where commit time is data rather than wall-clock now.
Worth noting that setting only the author date (as 'git commit --date' does) leaves a real committer timestamp in every object, which is invisible in default 'git log' and surprising later — so both want to be settable together.
Worked around locally by extending the type with a commit_at method that sets both env vars.
Upstream repository: https://github.com/swamp-club/swamp-extensions
Environment
- Extension:
@swamp/git@2026.08.28.1 - swamp:
20260911.215321.0-sha.d18f2d86 - OS:
linux(x86_64) - Deno:
2.9.6 - Shell:
/bin/bash
Shipped
Click a lifecycle step above to view its details.