ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/cli/tests
Scott Taylor 1eebbe57c0 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.
2024-06-29 08:35:53 -05:00
..
common
cli-reference@.md.snap
runner.rs
test_abandon_command.rs
test_acls.rs
test_advance_branches.rs
test_alias.rs
test_branch_command.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_builtin_aliases.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_checkout.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_commit_command.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_commit_template.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_concurrent_operations.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_config_command.rs
test_debug_command.rs
test_describe_command.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_diff_command.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_diffedit_command.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_duplicate_command.rs
test_edit_command.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_file_chmod_command.rs
test_file_print_command.rs
test_fix_command.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_generate_md_cli_help.rs
test_git_clone.rs
test_git_colocated.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_git_fetch.rs
test_git_import_export.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_git_init.rs
test_git_push.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_git_remotes.rs
test_git_submodule.rs
test_gitignores.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_global_opts.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_immutable_commits.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_init_command.rs
test_interdiff_command.rs
test_log_command.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_move_command.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_new_command.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_next_prev_commands.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_obslog_command.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_operations.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_parallelize_command.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_rebase_command.rs
test_repo_change_report.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_resolve_command.rs
test_restore_command.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_revset_output.rs
test_root.rs
test_shell_completion.rs
test_show_command.rs
test_sparse_command.rs
test_split_command.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_squash_command.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_status_command.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_tag_command.rs
test_templater.rs
test_undo.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_unsquash_command.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_untrack_command.rs
test_util_command.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_working_copy.rs
test_workspaces.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00