diff options
author | David Aguilar <davvid@gmail.com> | 2010-01-15 14:03:43 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-15 15:04:31 -0800 |
commit | f47f1e2ce8b4022113120b32decb4436341dc3aa (patch) | |
tree | 25c7dbb1e9f3cf122faf62d86e094ad136ad2a27 /t/t7800-difftool.sh | |
parent | a9e11220c2656cc5d7baac4d0735c04f9be46438 (diff) | |
download | git-f47f1e2ce8b4022113120b32decb4436341dc3aa.tar.gz |
difftool: Add '-x' and as an alias for '--extcmd'
This adds '-x' as a shorthand for the '--extcmd' option.
Arguments to '--extcmd' can be specified separately, which
was not originally possible.
This also fixes the brief help text so that it mentions
both '-x' and '--extcmd'.
Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7800-difftool.sh')
-rwxr-xr-x | t/t7800-difftool.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t7800-difftool.sh b/t/t7800-difftool.sh index 1d9e07b0d8..69e1c34159 100755 --- a/t/t7800-difftool.sh +++ b/t/t7800-difftool.sh @@ -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 ' |