diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2019-03-24 15:20:13 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-03-24 22:21:24 +0900 |
commit | 16bb3d714dcb1bf50f7f96b957c4306dc6df137e (patch) | |
tree | 94e12ab57590fba02355d55a5cb05839cbcb57dc /t/t4053-diff-no-index.sh | |
parent | c380a48c8b40331dd6466d6b565af6d44c7b11bf (diff) | |
download | git-16bb3d714dcb1bf50f7f96b957c4306dc6df137e.tar.gz |
diff --no-index: use parse_options() instead of diff_opt_parse()
While at there, move exit() back to the caller. It's easier to see the
flow that way than burying it in diff-no-index.c
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4053-diff-no-index.sh')
-rwxr-xr-x | t/t4053-diff-no-index.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/t/t4053-diff-no-index.sh b/t/t4053-diff-no-index.sh index 6e0dd6f9e5..fb25cdb789 100755 --- a/t/t4053-diff-no-index.sh +++ b/t/t4053-diff-no-index.sh @@ -50,8 +50,7 @@ test_expect_success 'git diff --no-index executed outside repo gives correct err export GIT_CEILING_DIRECTORIES && cd non/git && test_must_fail git diff --no-index a 2>actual.err && - echo "usage: git diff --no-index <path> <path>" >expect.err && - test_cmp expect.err actual.err + test_i18ngrep "usage: git diff --no-index" actual.err ) ' |