ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/cli/tests
Michael Gattozzi 3bc361a8b9 cli: add --allow-empty-description flag to push
This commit adds an optional flag to be able to push commits with an
empty description to a remote git repo. While the default behavior is
ideal we might need to interact with a repo that has an empty commit
description in it. I ran into this issue a few weeks ago pushing commits
from an open source repo to an empty repo and had to go back to using
git for that push as I would not want to rewrite the history which was
many many years long just for that.

This flag allows users an escape hatch for pushing empty descriptions
for commits and they're sure that they want that behavior.

This commit adds the flag to the `git push` command and updates the docs
for the command. It also updates the original test to make sure that the
flag works as intended to reject the commit when not set and to allow
the commit when the flag is set.

Closes #2633
2024-06-05 14:58:36 -04:00
..
common rebase: rewrite rebase_revision to use transform_descendants 2024-04-22 21:05:49 +08:00
cli-reference@.md.snap cli: add --allow-empty-description flag to push 2024-06-05 14:58:36 -04:00
runner.rs cli: implement enough of jj fix to run a single tool on all files 2024-06-04 14:28:21 -05:00
test_abandon_command.rs repo: when abandoning a working copy that a merge, recreate it 2024-05-29 06:54:30 -07:00
test_acls.rs backend: add error variant for access denied, handle when diffing 2024-05-30 18:27:38 -07:00
test_advance_branches.rs new: convert --insert-before and --insert-after into proper options 2024-06-05 19:29:27 +08:00
test_alias.rs cli: add space around = in jj config list output 2024-05-24 19:35:45 -07:00
test_branch_command.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_builtin_aliases.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_cat_command.rs cat: slightly change warning message about non-file paths 2024-05-30 18:27:38 -07:00
test_checkout.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_chmod_command.rs conflicts: label closing delimeter with conflict number 2024-05-20 18:36:51 -07:00
test_commit_command.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_commit_template.rs revset: omit function name from type error messages 2024-06-05 10:39:32 +09:00
test_concurrent_operations.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_config_command.rs cli: add space around = in jj config list output 2024-05-24 19:35:45 -07:00
test_debug_command.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_describe_command.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_diff_command.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_diffedit_command.rs conflicts: label closing delimeter with conflict number 2024-05-20 18:36:51 -07:00
test_duplicate_command.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_edit_command.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_fix_command.rs cli: implement enough of jj fix to run a single tool on all files 2024-06-04 14:28:21 -05:00
test_generate_md_cli_help.rs docs, CLI reference: use include-markdown instead of a symlink 2024-02-12 10:28:09 -08:00
test_git_clone.rs cli: rename --all to --all-remotes for branch list 2024-04-01 10:12:13 +09:00
test_git_colocated.rs cli: don't abandon non-discardable old wc commit by import_git_head() 2024-05-25 10:29:30 +09:00
test_git_fetch.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_git_import_export.rs cargo: upgrade gix to version 0.63 2024-05-22 11:20:57 -07:00
test_git_init.rs git: unset unborn HEAD ref on export 2024-06-01 11:01:16 +09:00
test_git_push.rs cli: add --allow-empty-description flag to push 2024-06-05 14:58:36 -04:00
test_git_remotes.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_git_submodule.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_gitignores.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_global_opts.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_immutable_commits.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_init_command.rs cli: rename --all to --all-remotes for branch list 2024-04-01 10:12:13 +09:00
test_interdiff_command.rs conflicts: label closing delimeter with conflict number 2024-05-20 18:36:51 -07:00
test_log_command.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_move_command.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_new_command.rs new: allow --insert-before and --insert-after simultaneously 2024-06-05 19:29:27 +08:00
test_next_prev_commands.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_obslog_command.rs conflicts: label closing delimeter with conflict number 2024-05-20 18:36:51 -07:00
test_operations.rs conflicts: consider the empty tree a non-legacy tree 2024-05-27 06:25:27 -07:00
test_parallelize_command.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_rebase_command.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_repo_change_report.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_resolve_command.rs conflicts: label closing delimeter with conflict number 2024-05-20 18:36:51 -07:00
test_restore_command.rs conflicts: label closing delimeter with conflict number 2024-05-20 18:36:51 -07:00
test_revset_output.rs revset: omit function name from type error messages 2024-06-05 10:39:32 +09:00
test_root.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_shell_completion.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_show_command.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_sparse_command.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_split_command.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_squash_command.rs conflicts: label closing delimeter with conflict number 2024-05-20 18:36:51 -07:00
test_status_command.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_tag_command.rs templater: add helper method that unwraps Option<T> property 2024-05-09 08:51:34 +09:00
test_templater.rs templater: attach alias traces to function parameter 2024-05-18 09:53:52 +09:00
test_undo.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_unsquash_command.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_untrack_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_util_command.rs cli: implement enough of jj fix to run a single tool on all files 2024-06-04 14:28:21 -05:00
test_working_copy.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00
test_workspaces.rs tests: avoid deprecated jj init --git/--git-repo 2024-05-17 13:55:20 -07:00