diff.*Prefix: use camelCase in the doc and test titles
We added documentation for diff.srcPrefix and diff.dstPrefix with their names properly camelCased, but the diff.noPrefix is listed there in all lowercase. Also these configuration variables, both existing ones and the {src,dst}Prefix we recently added, were spelled in all lowercase in the tests in t4013. Now we are done with the main change, clean these up. Signed-off-by: Junio C Hamano <gitster@pobox.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@ -108,7 +108,7 @@ diff.mnemonicPrefix::
|
|||||||
`git diff --no-index a b`;;
|
`git diff --no-index a b`;;
|
||||||
compares two non-git things (1) and (2).
|
compares two non-git things (1) and (2).
|
||||||
|
|
||||||
diff.noprefix::
|
diff.noPrefix::
|
||||||
If set, 'git diff' does not show any source or destination prefix.
|
If set, 'git diff' does not show any source or destination prefix.
|
||||||
|
|
||||||
diff.srcPrefix::
|
diff.srcPrefix::
|
||||||
|
@ -633,8 +633,8 @@ check_prefix () {
|
|||||||
test_cmp expect actual.paths
|
test_cmp expect actual.paths
|
||||||
}
|
}
|
||||||
|
|
||||||
test_expect_success 'diff-files does not respect diff.noprefix' '
|
test_expect_success 'diff-files does not respect diff.noPrefix' '
|
||||||
git -c diff.noprefix diff-files -p >actual &&
|
git -c diff.noPrefix diff-files -p >actual &&
|
||||||
check_prefix actual a/file0 b/file0
|
check_prefix actual a/file0 b/file0
|
||||||
'
|
'
|
||||||
|
|
||||||
@ -643,58 +643,58 @@ test_expect_success 'diff-files respects --no-prefix' '
|
|||||||
check_prefix actual file0 file0
|
check_prefix actual file0 file0
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'diff respects diff.noprefix' '
|
test_expect_success 'diff respects diff.noPrefix' '
|
||||||
git -c diff.noprefix diff >actual &&
|
git -c diff.noPrefix diff >actual &&
|
||||||
check_prefix actual file0 file0
|
check_prefix actual file0 file0
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'diff --default-prefix overrides diff.noprefix' '
|
test_expect_success 'diff --default-prefix overrides diff.noPrefix' '
|
||||||
git -c diff.noprefix diff --default-prefix >actual &&
|
git -c diff.noPrefix diff --default-prefix >actual &&
|
||||||
check_prefix actual a/file0 b/file0
|
check_prefix actual a/file0 b/file0
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'diff respects diff.mnemonicprefix' '
|
test_expect_success 'diff respects diff.mnemonicPrefix' '
|
||||||
git -c diff.mnemonicprefix diff >actual &&
|
git -c diff.mnemonicPrefix diff >actual &&
|
||||||
check_prefix actual i/file0 w/file0
|
check_prefix actual i/file0 w/file0
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'diff --default-prefix overrides diff.mnemonicprefix' '
|
test_expect_success 'diff --default-prefix overrides diff.mnemonicPrefix' '
|
||||||
git -c diff.mnemonicprefix diff --default-prefix >actual &&
|
git -c diff.mnemonicPrefix diff --default-prefix >actual &&
|
||||||
check_prefix actual a/file0 b/file0
|
check_prefix actual a/file0 b/file0
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'diff respects diff.srcprefix' '
|
test_expect_success 'diff respects diff.srcPrefix' '
|
||||||
git -c diff.srcprefix=x/ diff >actual &&
|
git -c diff.srcPrefix=x/ diff >actual &&
|
||||||
check_prefix actual x/file0 b/file0
|
check_prefix actual x/file0 b/file0
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'diff respects diff.dstprefix' '
|
test_expect_success 'diff respects diff.dstPrefix' '
|
||||||
git -c diff.dstprefix=y/ diff >actual &&
|
git -c diff.dstPrefix=y/ diff >actual &&
|
||||||
check_prefix actual a/file0 y/file0
|
check_prefix actual a/file0 y/file0
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'diff --src-prefix overrides diff.srcprefix' '
|
test_expect_success 'diff --src-prefix overrides diff.srcPrefix' '
|
||||||
git -c diff.srcprefix=y/ diff --src-prefix=z/ >actual &&
|
git -c diff.srcPrefix=y/ diff --src-prefix=z/ >actual &&
|
||||||
check_prefix actual z/file0 b/file0
|
check_prefix actual z/file0 b/file0
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'diff --dst-prefix overrides diff.dstprefix' '
|
test_expect_success 'diff --dst-prefix overrides diff.dstPrefix' '
|
||||||
git -c diff.dstprefix=y/ diff --dst-prefix=z/ >actual &&
|
git -c diff.dstPrefix=y/ diff --dst-prefix=z/ >actual &&
|
||||||
check_prefix actual a/file0 z/file0
|
check_prefix actual a/file0 z/file0
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'diff.{src,dst}prefix ignored with diff.noprefix' '
|
test_expect_success 'diff.{src,dst}Prefix ignored with diff.noPrefix' '
|
||||||
git -c diff.dstprefix=y/ -c diff.srcprefix=x/ -c diff.noprefix diff >actual &&
|
git -c diff.dstPrefix=y/ -c diff.srcPrefix=x/ -c diff.noPrefix diff >actual &&
|
||||||
check_prefix actual file0 file0
|
check_prefix actual file0 file0
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'diff.{src,dst}prefix ignored with diff.mnemonicprefix' '
|
test_expect_success 'diff.{src,dst}Prefix ignored with diff.mnemonicPrefix' '
|
||||||
git -c diff.dstprefix=x/ -c diff.srcprefix=y/ -c diff.mnemonicprefix diff >actual &&
|
git -c diff.dstPrefix=x/ -c diff.srcPrefix=y/ -c diff.mnemonicPrefix diff >actual &&
|
||||||
check_prefix actual i/file0 w/file0
|
check_prefix actual i/file0 w/file0
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'diff.{src,dst}prefix ignored with --default-prefix' '
|
test_expect_success 'diff.{src,dst}Prefix ignored with --default-prefix' '
|
||||||
git -c diff.dstprefix=x/ -c diff.srcprefix=y/ diff --default-prefix >actual &&
|
git -c diff.dstPrefix=x/ -c diff.srcPrefix=y/ diff --default-prefix >actual &&
|
||||||
check_prefix actual a/file0 b/file0
|
check_prefix actual a/file0 b/file0
|
||||||
'
|
'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user