difftool: Add '-x' and as an alias for '--extcmd'
[gitweb.git] / t / t7800-difftool.sh
index 1d9e07b0d84347be4a6bbd5d8b766f20fede1786..69e1c3415983fea50c3a059e5fa440560591737d 100755 (executable)
@@ -225,8 +225,16 @@ test_expect_success 'difftool.<tool>.path' '
 test_expect_success 'difftool --extcmd=cat' '
        diff=$(git difftool --no-prompt --extcmd=cat branch) &&
        test "$diff" = branch"$LF"master
+'
 
+test_expect_success 'difftool --extcmd cat' '
+       diff=$(git difftool --no-prompt --extcmd cat branch) &&
+       test "$diff" = branch"$LF"master
+'
 
+test_expect_success 'difftool -x cat' '
+       diff=$(git difftool --no-prompt -x cat branch) &&
+       test "$diff" = branch"$LF"master
 
 
 '