Skip to content

Commit

Permalink
tests (status): spell out the --find-renames option in full
Browse files Browse the repository at this point in the history
To avoid future ambiguities, we really want to use full option names in
the test suite. `t7525-status-rename.sh` used an abbreviated form of the
`--find-renames` option, though, so let's change that.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
dscho authored and gitster committed Apr 2, 2019
1 parent f6188dc commit c4932b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/t7525-status-rename.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ test_expect_success 'status score=100%' '
test_i18ngrep "deleted:" actual &&
test_i18ngrep "new file:" actual &&
git status --find-rename=100% >actual &&
git status --find-renames=100% >actual &&
test_i18ngrep "deleted:" actual &&
test_i18ngrep "new file:" actual
'
Expand All @@ -93,19 +93,19 @@ test_expect_success 'status score=01%' '
git status -M=01% >actual &&
test_i18ngrep "renamed:" actual &&
git status --find-rename=01% >actual &&
git status --find-renames=01% >actual &&
test_i18ngrep "renamed:" actual
'

test_expect_success 'copies not overridden by find-rename' '
test_expect_success 'copies not overridden by find-renames' '
cp renamed copy &&
git add copy &&
git -c status.renames=copies status -M=01% >actual &&
test_i18ngrep "copied:" actual &&
test_i18ngrep "renamed:" actual &&
git -c status.renames=copies status --find-rename=01% >actual &&
git -c status.renames=copies status --find-renames=01% >actual &&
test_i18ngrep "copied:" actual &&
test_i18ngrep "renamed:" actual
'
Expand Down

0 comments on commit c4932b0

Please sign in to comment.