Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commit_builder: reset author timestamp on discardable commits #3906

Merged
merged 1 commit into from
Jun 29, 2024

Commits on Jun 29, 2024

  1. commit_builder: reset author timestamp on discardable commits

    It's common to create empty working-copy commits while using jj, and
    currently the author timestamp for a commit is only set when it is first
    created. If you create an empty commit, then don't work on a repo for a
    few days, and then start working on a new feature without abandoning the
    working-copy commit, the author timestamp will remain as the time the
    commit was created rather than being updated to the time that work began
    or finished.
    
    This commit changes the behavior so that discardable commits (empty
    commits with no description) by the current user have their author
    timestamps reset when they are rewritten, meaning that the author
    timestamp will become finalized whenever a commit is given a description
    or becomes non-empty.
    scott2000 committed Jun 29, 2024
    Configuration menu
    Copy the full SHA
    315e6a3 View commit details
    Browse the repository at this point in the history