diff --git a/cli/src/command_error.rs b/cli/src/command_error.rs index 2ee53bed67..625ec7d1a7 100644 --- a/cli/src/command_error.rs +++ b/cli/src/command_error.rs @@ -327,7 +327,9 @@ impl From for CommandError { - Run `jj config set --repo snapshot.max-new-file-size {}` This will increase the maximum file size allowed for new files, in this repository only. - Run `jj --config-toml 'snapshot.max-new-file-size={}' st` - This will increase the maximum file size allowed for new files, for this command only.", + This will increase the maximum file size allowed for new files, for this command only. + - Run the command with `--ignore-working-copy` + This will ignore changes to the working copy that have not been previously snapshotted.", size.0, size.0 )) } diff --git a/cli/tests/test_working_copy.rs b/cli/tests/test_working_copy.rs index 55a859ca99..a2144825de 100644 --- a/cli/tests/test_working_copy.rs +++ b/cli/tests/test_working_copy.rs @@ -34,6 +34,8 @@ fn test_snapshot_large_file() { This will increase the maximum file size allowed for new files, in this repository only. - Run `jj --config-toml 'snapshot.max-new-file-size=13' st` This will increase the maximum file size allowed for new files, for this command only. + - Run the command with `--ignore-working-copy` + This will ignore changes to the working copy that have not been previously snapshotted. "###); // test with a larger file using 'KB' human-readable syntax @@ -50,5 +52,7 @@ fn test_snapshot_large_file() { This will increase the maximum file size allowed for new files, in this repository only. - Run `jj --config-toml 'snapshot.max-new-file-size=11264' st` This will increase the maximum file size allowed for new files, for this command only. + - Run the command with `--ignore-working-copy` + This will ignore changes to the working copy that have not been previously snapshotted. "###); }