Feature request: Git `AuthorDate` configuration in `SQUASH` mode
- Dominant language
- Java
- Stars
- 3.8k
- Forks
- 345
- PR merge metrics
- No merged PRs in 30d
Description
Currently, when Copybara is used in `SQUASH` mode with a Git origin and destination, it keeps the date of the last original commit as the squash commit's `AuthorDate`, but sets the `CommitDate` to the time of its invocation. As far as I can tell, there is no way to change this, leading to needless exposure of metadata from the original repository.
It would be great if there was a way to let it set the `AuthorDate` to the time of invocation as well, or better yet to provide ways of configuring/manipulating these more generally.
Contributor guide
Research direction
Start by locating the Git origin and destination handling for SQUASH mode, then trace how AuthorDate and CommitDate are assigned during invocation. Determine whether the requested behavior can be a focused configuration or requires a broader metadata design. Done means invocation-time AuthorDate can be selected without exposing the original repository's date, with coverage for the SQUASH path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, java
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100