]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t7800-difftool.sh
Merge branch 'js/diff-files-i-t-a-fix-for-difftool'
[thirdparty/git.git] / t / t7800-difftool.sh
index 29b92907e2ad850514fe970ca1adeeda8d0697c8..524f30f7dc7c2388bad3885303541d4a72ed4470 100755 (executable)
@@ -720,6 +720,14 @@ test_expect_success SYMLINKS 'difftool --dir-diff handles modified symlinks' '
        test_cmp expect actual
 '
 
+test_expect_success 'add -N and difftool -d' '
+       test_when_finished git reset --hard &&
+
+       test_write_lines A B C >intent-to-add &&
+       git add -N intent-to-add &&
+       git difftool --dir-diff --extcmd ls
+'
+
 test_expect_success 'outside worktree' '
        echo 1 >1 &&
        echo 2 >2 &&