diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-02-05 14:54:15 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-02-05 14:54:15 -0800 |
commit | 02dab5d399fb276f91646d7780da90596bffefab (patch) | |
tree | 29b03cb0e3c0a2111307903c4cf1ba9d895c25d3 /t | |
parent | Merge branch 'dw/subtree-split-do-not-drop-merge' into maint (diff) | |
parent | diff: make -O and --output work in subdirectory (diff) | |
download | tgif-02dab5d399fb276f91646d7780da90596bffefab.tar.xz |
Merge branch 'nd/diff-with-path-params' into maint
A few options of "git diff" did not work well when the command was
run from a subdirectory.
* nd/diff-with-path-params:
diff: make -O and --output work in subdirectory
diff-no-index: do not take a redundant prefix argument
Diffstat (limited to 't')
-rwxr-xr-x | t/t4056-diff-order.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t4056-diff-order.sh b/t/t4056-diff-order.sh index c0460bb0e5..43dd474a12 100755 --- a/t/t4056-diff-order.sh +++ b/t/t4056-diff-order.sh @@ -68,6 +68,12 @@ test_expect_success POSIXPERM,SANITY 'unreadable orderfile' ' test_must_fail git diff -Ounreadable_file --name-only HEAD^..HEAD ' +test_expect_success "orderfile using option from subdir with --output" ' + mkdir subdir && + git -C subdir diff -O../order_file_1 --output ../actual --name-only HEAD^..HEAD && + test_cmp expect_1 actual +' + for i in 1 2 do test_expect_success "orderfile using option ($i)" ' |