]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t4013-diff-various.sh
Merge branch 'la/strvec-comment-fix' into maint-2.43
[thirdparty/git.git] / t / t4013-diff-various.sh
index 76b8619e2efde8550004a0c4fb5ac5956bb69b6b..1a7e2b0bcb5e3a3024ed482c855af6acfbe41e4e 100755 (executable)
@@ -663,4 +663,10 @@ test_expect_success 'diff --default-prefix overrides diff.mnemonicprefix' '
        check_prefix actual a/file0 b/file0
 '
 
+test_expect_success 'diff --no-renames cannot be abbreviated' '
+       test_expect_code 129 git diff --no-rename >actual 2>error &&
+       test_must_be_empty actual &&
+       grep "invalid option: --no-rename" error
+'
+
 test_done