Removal of GIT_TEST_GETTEXT_POISON continues.
* ab/detox-gettext-tests:
tests: remove most uses of test_i18ncmp
tests: remove last uses of C_LOCALE_OUTPUT
tests: remove most uses of C_LOCALE_OUTPUT
tests: remove last uses of GIT_TEST_GETTEXT_POISON=false
@ -271,7 +271,7 @@ test_expect_success 'pretend we have a mix of all possible results' '
@@ -271,7 +271,7 @@ test_expect_success 'pretend we have a mix of all possible results' '
@ -10,7 +10,7 @@ test_expect_success 'advice should be printed when config variable is unset' '
@@ -10,7 +10,7 @@ test_expect_success 'advice should be printed when config variable is unset' '
hint: Disable this message with "git config advice.nestedTag false"
EOF
test-tool advise "This is a piece of advice" 2>actual &&
test_i18ncmp expect actual
test_cmp expect actual
'
test_expect_success 'advice should be printed when config variable is set to true' '
@ -20,7 +20,7 @@ test_expect_success 'advice should be printed when config variable is set to tru
@@ -20,7 +20,7 @@ test_expect_success 'advice should be printed when config variable is set to tru
EOF
test_config advice.nestedTag true &&
test-tool advise "This is a piece of advice" 2>actual &&
test_i18ncmp expect actual
test_cmp expect actual
'
test_expect_success 'advice should not be printed when config variable is set to false' '
warning: url contains a newline in its path component: https://one.example.com?%0ahost=two.example.com/
fatal: credential url cannot be parsed: https://one.example.com?%0ahost=two.example.com/
EOF
test_i18ncmp expect stderr
test_cmp expect stderr
'
test_expect_success 'host-less URLs are parsed as empty host' '
@ -633,7 +633,7 @@ test_expect_success 'credential system refuses to work with missing host' '
@@ -633,7 +633,7 @@ test_expect_success 'credential system refuses to work with missing host' '
cat >expect <<-\EOF &&
fatal: refusing to work with credential missing host field
EOF
test_i18ncmp expect stderr
test_cmp expect stderr
'
test_expect_success 'credential system refuses to work with missing protocol' '
@ -643,7 +643,7 @@ test_expect_success 'credential system refuses to work with missing protocol' '
@@ -643,7 +643,7 @@ test_expect_success 'credential system refuses to work with missing protocol' '
cat >expect <<-\EOF &&
fatal: refusing to work with credential missing protocol field
test_expect_success 'cover up after throughput shortens' '
@ -255,7 +255,7 @@ test_expect_success 'cover up after throughput shortens' '
@@ -255,7 +255,7 @@ test_expect_success 'cover up after throughput shortens' '
test-tool progress "Working hard" <in 2>stderr &&
show_cr <stderr >out &&
test_i18ncmp expect out
test_cmp expect out
'
test_expect_success 'cover up after throughput shortens a lot' '
@ -280,7 +280,7 @@ test_expect_success 'cover up after throughput shortens a lot' '
@@ -280,7 +280,7 @@ test_expect_success 'cover up after throughput shortens a lot' '
@ -253,7 +253,7 @@ warning: The following paths were already present and thus not updated despite s
@@ -253,7 +253,7 @@ warning: The following paths were already present and thus not updated despite s
After fixing the above paths, you may want to run `git sparse-checkout reapply`.
EOF
test_i18ncmp expected actual
test_cmp expected actual
'
test_expect_success 'checkout without --ignore-skip-worktree-bits' '
@ -376,7 +376,7 @@ test_expect_success 'tag with incorrect tag name & missing tagger' '
@@ -376,7 +376,7 @@ test_expect_success 'tag with incorrect tag name & missing tagger' '
warning in tag $tag: badTagName: invalid '\''tag'\'' name: wrong name format
warning in tag $tag: missingTaggerEntry: invalid format - expected '\''tagger'\'' line
test_expect_success '@{u} error message when not on a branch' '
@ -197,7 +197,7 @@ test_expect_success '@{u} error message when not on a branch' '
@@ -197,7 +197,7 @@ test_expect_success '@{u} error message when not on a branch' '
@ -150,7 +150,7 @@ test_expect_success 'checkout -b to @{-1} fails with the right branch name' '
@@ -150,7 +150,7 @@ test_expect_success 'checkout -b to @{-1} fails with the right branch name' '
git checkout branch2 &&
echo >expect "fatal: A branch named '\''branch1'\'' already exists." &&
test_must_fail git checkout -b @{-1} 2>actual &&
test_i18ncmp expect actual
test_cmp expect actual
'
test_expect_success 'checkout -B to an existing branch resets branch to HEAD' '
@ -163,7 +163,7 @@ test_expect_success 'tracking count is accurate after orphan check' '
@@ -163,7 +163,7 @@ test_expect_success 'tracking count is accurate after orphan check' '
git config branch.child.merge refs/heads/main &&
git checkout child^ &&
git checkout child >stdout &&
test_i18ncmp expect stdout
test_cmp expect stdout
'
test_expect_success 'no advice given for explicit detached head state' '
@ -237,15 +237,15 @@ test_expect_success 'describe_detached_head prints no SHA-1 ellipsis when not as
@@ -237,15 +237,15 @@ test_expect_success 'describe_detached_head prints no SHA-1 ellipsis when not as
@ -256,17 +256,17 @@ test_expect_success 'describe_detached_head prints no SHA-1 ellipsis when not as
@@ -256,17 +256,17 @@ test_expect_success 'describe_detached_head prints no SHA-1 ellipsis when not as
@ -135,7 +135,7 @@ test_expect_success 'add -n -u should not add but just report' '
@@ -135,7 +135,7 @@ test_expect_success 'add -n -u should not add but just report' '
test_expect_success 'test --unset-upstream on a particular branch' '
@ -957,7 +957,7 @@ test_expect_success '--set-upstream-to notices an error to set branch as own ups
@@ -957,7 +957,7 @@ test_expect_success '--set-upstream-to notices an error to set branch as own ups
test_expect_success 'git branch shows detached HEAD properly after checkout --detach' '
@ -173,7 +173,7 @@ test_expect_success 'git branch shows detached HEAD properly after checkout --de
@@ -173,7 +173,7 @@ test_expect_success 'git branch shows detached HEAD properly after checkout --de
EOF
git checkout --detach &&
git branch >actual &&
test_i18ncmp expect actual
test_cmp expect actual
'
test_expect_success 'git branch shows detached HEAD properly after moving' '
@ -185,7 +185,7 @@ test_expect_success 'git branch shows detached HEAD properly after moving' '
@@ -185,7 +185,7 @@ test_expect_success 'git branch shows detached HEAD properly after moving' '
EOF
git reset --hard HEAD^1 &&
git branch >actual &&
test_i18ncmp expect actual
test_cmp expect actual
'
test_expect_success 'git branch shows detached HEAD properly from tag' '
@ -198,7 +198,7 @@ EOF
@@ -198,7 +198,7 @@ EOF
git tag fromtag main &&
git checkout fromtag &&
git branch >actual &&
test_i18ncmp expect actual
test_cmp expect actual
'
test_expect_success 'git branch shows detached HEAD properly after moving from tag' '
@ -210,7 +210,7 @@ test_expect_success 'git branch shows detached HEAD properly after moving from t
@@ -210,7 +210,7 @@ test_expect_success 'git branch shows detached HEAD properly after moving from t
@ -113,7 +113,7 @@ test_expect_success 'rebase off of the previous branch using "-"' '
@@ -113,7 +113,7 @@ test_expect_success 'rebase off of the previous branch using "-"' '
test_cmp expect.forkpoint actual.forkpoint &&
# the next one is dubious---we may want to say "-",
# instead of @{-1}, in the message
test_i18ncmp expect.messages actual.messages
test_cmp expect.messages actual.messages
'
test_expect_success 'rebase a single mode change' '
test_expect_success 'rebase -i with exec of inexistent command' '
@ -451,7 +451,7 @@ test_expect_success 'verbose flag is heeded, even after --continue' '
@@ -451,7 +451,7 @@ test_expect_success 'verbose flag is heeded, even after --continue' '
grep "^ file1 | 2 +-$" output
'
test_expect_success C_LOCALE_OUTPUT 'multi-squash only fires up editor once' '
test_expect_success 'multi-squash only fires up editor once' '
base=$(git rev-parse HEAD~4) &&
(
set_fake_editor &&
@ -464,7 +464,7 @@ test_expect_success C_LOCALE_OUTPUT 'multi-squash only fires up editor once' '
@@ -464,7 +464,7 @@ test_expect_success C_LOCALE_OUTPUT 'multi-squash only fires up editor once' '
test 1 = $(git show | grep ONCE | wc -l)
'
test_expect_success C_LOCALE_OUTPUT 'multi-fixup does not fire up editor' '
test_expect_success 'multi-fixup does not fire up editor' '
@ -996,7 +996,7 @@ test_expect_success 'rebase -ix with several instances of --exec' '
@@ -996,7 +996,7 @@ test_expect_success 'rebase -ix with several instances of --exec' '
test_cmp expected actual
'
test_expect_success C_LOCALE_OUTPUT 'rebase -ix with --autosquash' '
test_expect_success 'rebase -ix with --autosquash' '
git reset --hard execute &&
git checkout -b autosquash &&
echo second >second.txt &&
@ -1137,7 +1137,7 @@ test_expect_success 'rebase -i --root reword root when root has untracked file c
@@ -1137,7 +1137,7 @@ test_expect_success 'rebase -i --root reword root when root has untracked file c
test "$(git rev-list --count HEAD)" = 2
'
test_expect_success C_LOCALE_OUTPUT 'rebase --edit-todo does not work on non-interactive rebase' '
test_expect_success 'rebase --edit-todo does not work on non-interactive rebase' '
@ -86,7 +86,7 @@ test_expect_success 'output to keep user entertained during multi-pick' '
@@ -86,7 +86,7 @@ test_expect_success 'output to keep user entertained during multi-pick' '
git cherry-pick first..fourth >actual &&
sed -e "s/$_x05[0-9a-f][0-9a-f]/OBJID/" <actual >actual.fuzzy &&
@ -170,7 +170,7 @@ test_expect_success 'check advice when we move HEAD by committing' '
@@ -170,7 +170,7 @@ test_expect_success 'check advice when we move HEAD by committing' '
git commit -a &&
test_path_is_missing .git/CHERRY_PICK_HEAD &&
test_must_fail git cherry-pick --skip 2>advice &&
test_i18ncmp expect advice
test_cmp expect advice
'
test_expect_success 'selectively advise --skip while launching another sequence' '
@ -182,7 +182,7 @@ test_expect_success 'selectively advise --skip while launching another sequence'
@@ -182,7 +182,7 @@ test_expect_success 'selectively advise --skip while launching another sequence'
test_expect_success 'allow skipping commit but not abort for a new history' '
@ -204,7 +204,7 @@ test_expect_success 'allow skipping commit but not abort for a new history' '
@@ -204,7 +204,7 @@ test_expect_success 'allow skipping commit but not abort for a new history' '
@ -454,7 +454,7 @@ test_expect_success 'rm issues a warning when section is not found in .gitmodule
@@ -454,7 +454,7 @@ test_expect_success 'rm issues a warning when section is not found in .gitmodule
git add .gitmodules &&
echo "warning: Could not find section in .gitmodules where path=submod" >expect.err &&
git rm submod >actual 2>actual.err &&
test_i18ncmp expect.err actual.err &&
test_cmp expect.err actual.err &&
test_path_is_missing submod &&
test_path_is_missing submod/.git &&
git status -s -uno >actual &&
@ -824,7 +824,7 @@ test_expect_success 'rm files with different staged content' '
@@ -824,7 +824,7 @@ test_expect_success 'rm files with different staged content' '
echo content1 >foo.txt &&
echo content1 >bar.txt &&
test_must_fail git rm foo.txt bar.txt 2>actual &&
test_i18ncmp expect actual
test_cmp expect actual
'
test_expect_success 'rm files with different staged content without hints' '
@ -837,7 +837,7 @@ test_expect_success 'rm files with different staged content without hints' '
@@ -837,7 +837,7 @@ test_expect_success 'rm files with different staged content without hints' '
test_expect_success 'rm file with local modification' '
@ -849,7 +849,7 @@ test_expect_success 'rm file with local modification' '
@@ -849,7 +849,7 @@ test_expect_success 'rm file with local modification' '
git commit -m "testing rm 3" &&
echo content3 >foo.txt &&
test_must_fail git rm foo.txt 2>actual &&
test_i18ncmp expect actual
test_cmp expect actual
'
test_expect_success 'rm file with local modification without hints' '
@ -859,7 +859,7 @@ test_expect_success 'rm file with local modification without hints' '
@@ -859,7 +859,7 @@ test_expect_success 'rm file with local modification without hints' '
test_expect_success 'rm file with changes in the index' '
@ -872,7 +872,7 @@ test_expect_success 'rm file with changes in the index' '
@@ -872,7 +872,7 @@ test_expect_success 'rm file with changes in the index' '
echo content5 >foo.txt &&
git add foo.txt &&
test_must_fail git rm foo.txt 2>actual &&
test_i18ncmp expect actual
test_cmp expect actual
'
test_expect_success 'rm file with changes in the index without hints' '
@ -881,7 +881,7 @@ test_expect_success 'rm file with changes in the index without hints' '
@@ -881,7 +881,7 @@ test_expect_success 'rm file with changes in the index without hints' '
test_expect_success 'rm files with two different errors' '
@ -900,7 +900,7 @@ test_expect_success 'rm files with two different errors' '
@@ -900,7 +900,7 @@ test_expect_success 'rm files with two different errors' '
@ -304,7 +304,7 @@ test_expect_success 'error on a repository with no commits' '
@@ -304,7 +304,7 @@ test_expect_success 'error on a repository with no commits' '
error: '"'empty/'"' does not have a commit checked out
fatal: adding files failed
EOF
test_i18ncmp expect actual
test_cmp expect actual
'
test_expect_success 'git add --dry-run of existing changed file' "
@ -564,7 +564,7 @@ test_expect_success 'stash show format defaults to --stat' '
@@ -564,7 +564,7 @@ test_expect_success 'stash show format defaults to --stat' '
1 file changed, 1 insertion(+)
EOF
git stash show ${STASH_ID} >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
test_expect_success 'stash show - stashes on stack, stash-like argument' '
@ -792,7 +792,7 @@ test_expect_success 'apply: show same status as git status (relative to ./)' '
@@ -792,7 +792,7 @@ test_expect_success 'apply: show same status as git status (relative to ./)' '
git stash apply
) |
sed -e 1d >actual && # drop "Saved..."
test_i18ncmp expect actual
test_cmp expect actual
'
cat >expect <<EOF
@ -1114,7 +1114,7 @@ test_expect_success 'stash push -p with pathspec shows no changes only once' '
@@ -1114,7 +1114,7 @@ test_expect_success 'stash push -p with pathspec shows no changes only once' '
git stash push -p foo >actual &&
echo "No local changes to save" >expect &&
git reset --hard HEAD~ &&
test_i18ncmp expect actual
test_cmp expect actual
'
test_expect_success 'push <pathspec>: show no changes when there are none' '
@ -1124,7 +1124,7 @@ test_expect_success 'push <pathspec>: show no changes when there are none' '
@@ -1124,7 +1124,7 @@ test_expect_success 'push <pathspec>: show no changes when there are none' '
git stash push foo >actual &&
echo "No local changes to save" >expect &&
git reset --hard HEAD~ &&
test_i18ncmp expect actual
test_cmp expect actual
'
test_expect_success 'push: <pathspec> not in the repository errors out' '
@ -888,11 +888,11 @@ echo "fatal: --check does not make sense" >expect.check
@@ -888,11 +888,11 @@ echo "fatal: --check does not make sense" >expect.check
test_expect_success 'options no longer allowed for format-patch' '
@ -25,7 +25,7 @@ test_expect_success 'mode-only change show as a 0-line change' '
@@ -25,7 +25,7 @@ test_expect_success 'mode-only change show as a 0-line change' '
4 files changed, 2 insertions(+)
EOF
git diff --stat --stat-count=2 HEAD >actual &&
test_i18ncmp expect actual
test_cmp expect actual
'
test_expect_success 'binary changes do not count in lines' '
@ -40,7 +40,7 @@ test_expect_success 'binary changes do not count in lines' '
@@ -40,7 +40,7 @@ test_expect_success 'binary changes do not count in lines' '
3 files changed, 2 insertions(+)
EOF
git diff --stat --stat-count=2 >actual &&
test_i18ncmp expect actual
test_cmp expect actual
'
test_expect_success 'exclude unmerged entries from total file count' '
@ -62,7 +62,7 @@ test_expect_success 'exclude unmerged entries from total file count' '
@@ -62,7 +62,7 @@ test_expect_success 'exclude unmerged entries from total file count' '
@ -150,7 +150,7 @@ test_expect_success 'remove errors out early when deleting non-existent branch'
@@ -150,7 +150,7 @@ test_expect_success 'remove errors out early when deleting non-existent branch'
cd test &&
echo "error: No such remote: '\''foo'\''" >expect &&
test_expect_code 2 git remote rm foo 2>actual &&
test_i18ncmp expect actual
test_cmp expect actual
)
'
@ -178,7 +178,7 @@ test_expect_success 'rename errors out early when deleting non-existent branch'
@@ -178,7 +178,7 @@ test_expect_success 'rename errors out early when deleting non-existent branch'
cd test &&
echo "error: No such remote: '\''foo'\''" >expect &&
test_expect_code 2 git remote rename foo bar 2>actual &&
test_i18ncmp expect actual
test_cmp expect actual
)
'
@ -186,14 +186,14 @@ test_expect_success 'rename errors out early when when new name is invalid' '
@@ -186,14 +186,14 @@ test_expect_success 'rename errors out early when when new name is invalid' '
test_config remote.foo.vcs bar &&
echo "fatal: '\''invalid...name'\'' is not a valid remote name" >expect &&
@ -337,7 +337,7 @@ test_expect_success 'set-head --auto has no problem w/multiple HEADs' '
@@ -337,7 +337,7 @@ test_expect_success 'set-head --auto has no problem w/multiple HEADs' '
git fetch two "refs/heads/*:refs/remotes/two/*" &&
@ -1051,7 +1051,7 @@ test_expect_success 'fetch --prune prints the remotes url' '
@@ -1051,7 +1051,7 @@ test_expect_success 'fetch --prune prints the remotes url' '
git fetch --prune origin 2>&1 | head -n1 >../actual
) &&
echo "From ${D}/." >expect &&
test_i18ncmp expect actual
test_cmp expect actual
'
test_expect_success 'branchname D/F conflict resolved by --prune' '
@ -1097,7 +1097,7 @@ test_expect_success 'fetching with auto-gc does not lock up' '
@@ -1097,7 +1097,7 @@ test_expect_success 'fetching with auto-gc does not lock up' '
@ -150,7 +150,7 @@ test_expect_success 'confuses pattern as remote when no remote specified' '
@@ -150,7 +150,7 @@ test_expect_success 'confuses pattern as remote when no remote specified' '
# We could just as easily have used "main"; the "*" emphasizes its
test_expect_success "fetch --recurse-submodules -j2 has the same output behaviour" '
@ -94,7 +94,7 @@ test_expect_success "fetch --recurse-submodules -j2 has the same output behaviou
@@ -94,7 +94,7 @@ test_expect_success "fetch --recurse-submodules -j2 has the same output behaviou
@ -257,7 +257,7 @@ test_expect_success "Recursion stops when no new submodule commits are fetched"
@@ -257,7 +257,7 @@ test_expect_success "Recursion stops when no new submodule commits are fetched"
cd downstream &&
git fetch >../actual.out 2>../actual.err
) &&
test_i18ncmp expect.err.sub actual.err &&
test_cmp expect.err.sub actual.err &&
test_must_be_empty actual.out
'
@ -275,7 +275,7 @@ test_expect_success "Recursion doesn't happen when new superproject commits don'
@@ -275,7 +275,7 @@ test_expect_success "Recursion doesn't happen when new superproject commits don'
git fetch >../actual.out 2>../actual.err
) &&
test_must_be_empty actual.out &&
test_i18ncmp expect.err.file actual.err
test_cmp expect.err.file actual.err
'
test_expect_success "Recursion picks up config in submodule" '
@ -303,7 +303,7 @@ test_expect_success "Recursion picks up config in submodule" '
@@ -303,7 +303,7 @@ test_expect_success "Recursion picks up config in submodule" '
git config --unset fetch.recurseSubmodules
)
) &&
test_i18ncmp expect.err.sub actual.err &&
test_cmp expect.err.sub actual.err &&
test_must_be_empty actual.out
'
@ -336,7 +336,7 @@ test_expect_success "Recursion picks up all submodules when necessary" '
@@ -336,7 +336,7 @@ test_expect_success "Recursion picks up all submodules when necessary" '
cd downstream &&
git fetch >../actual.out 2>../actual.err
) &&
test_i18ncmp expect.err.2 actual.err &&
test_cmp expect.err.2 actual.err &&
test_must_be_empty actual.out
'
@ -392,7 +392,7 @@ test_expect_success "'--recurse-submodules=on-demand' recurses as deep as necess
@@ -392,7 +392,7 @@ test_expect_success "'--recurse-submodules=on-demand' recurses as deep as necess
)
) &&
test_must_be_empty actual.out &&
test_i18ncmp expect.err actual.err
test_cmp expect.err actual.err
'
test_expect_success "'--recurse-submodules=on-demand' stops when no new submodule commits are found in the superproject (and ignores config)" '
@ -409,7 +409,7 @@ test_expect_success "'--recurse-submodules=on-demand' stops when no new submodul
@@ -409,7 +409,7 @@ test_expect_success "'--recurse-submodules=on-demand' stops when no new submodul
test_expect_success "don't fetch submodule when newly recorded commits are already present" '
@ -484,7 +484,7 @@ test_expect_success "don't fetch submodule when newly recorded commits are alrea
@@ -484,7 +484,7 @@ test_expect_success "don't fetch submodule when newly recorded commits are alrea
git fetch >../actual.out 2>../actual.err
) &&
test_must_be_empty actual.out &&
test_i18ncmp expect.err actual.err &&
test_cmp expect.err actual.err &&
(
cd submodule &&
git checkout -q sub
@ -520,7 +520,7 @@ test_expect_success "'fetch.recurseSubmodules=on-demand' works also without .git
@@ -520,7 +520,7 @@ test_expect_success "'fetch.recurseSubmodules=on-demand' works also without .git
git reset --hard
) &&
test_must_be_empty actual.out &&
test_i18ncmp expect.err.2 actual.err &&
test_cmp expect.err.2 actual.err &&
git checkout HEAD^ -- .gitmodules &&
git add .gitmodules &&
git commit -m "new submodule restored .gitmodules"
@ -139,7 +139,7 @@ test_expect_success 'will not overwrite untracked file in leading path' '
@@ -139,7 +139,7 @@ test_expect_success 'will not overwrite untracked file in leading path' '
cp important sub &&
cp important sub2 &&
test_must_fail git merge sub 2>out &&
test_i18ncmp out expect &&
test_cmp out expect &&
test_path_is_missing .git/MERGE_HEAD &&
test_cmp important sub &&
test_cmp important sub2 &&
@ -174,7 +174,7 @@ test_expect_success 'will not overwrite untracked file on unborn branch' '
@@ -174,7 +174,7 @@ test_expect_success 'will not overwrite untracked file on unborn branch' '
git checkout --orphan new &&
cp important c0.c &&
test_must_fail git merge c0 2>out &&
test_i18ncmp out expect
test_cmp out expect
'
test_expect_success 'will not overwrite untracked file on unborn branch .git/MERGE_HEAD sanity etc.' '
test_expect_success 'untracked files overwritten by merge (fast and non-fast forward)' '
test_must_fail git merge branch 2>out &&
test_i18ncmp out expect &&
test_cmp out expect &&
git commit --allow-empty -m empty &&
(
GIT_MERGE_VERBOSITY=0 &&
export GIT_MERGE_VERBOSITY &&
test_must_fail git merge branch 2>out2
) &&
test_i18ncmp out2 expect &&
test_cmp out2 expect &&
git reset --hard HEAD^
'
@ -68,7 +68,7 @@ test_expect_success 'untracked files or local changes ovewritten by merge' '
@@ -68,7 +68,7 @@ test_expect_success 'untracked files or local changes ovewritten by merge' '
git add three &&
git add four &&
test_must_fail git merge branch 2>out &&
test_i18ncmp out expect
test_cmp out expect
'
cat >expect <<\EOF
@ -90,7 +90,7 @@ test_expect_success 'cannot switch branches because of local changes' '
@@ -90,7 +90,7 @@ test_expect_success 'cannot switch branches because of local changes' '
@ -446,7 +446,7 @@ test_expect_success 'mv issues a warning when section is not found in .gitmodule
@@ -446,7 +446,7 @@ test_expect_success 'mv issues a warning when section is not found in .gitmodule
echo "warning: Could not find section in .gitmodules where path=sub" >expect.err &&
@ -98,7 +98,7 @@ test_expect_success 'creating a tag with --create-reflog should create reflog' '
@@ -98,7 +98,7 @@ test_expect_success 'creating a tag with --create-reflog should create reflog' '
git tag --create-reflog tag_with_reflog &&
git reflog exists refs/tags/tag_with_reflog &&
sed -e "s/^.* //" .git/logs/refs/tags/tag_with_reflog >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
test_expect_success 'annotated tag with --create-reflog has correct message' '
@ -109,7 +109,7 @@ test_expect_success 'annotated tag with --create-reflog has correct message' '
@@ -109,7 +109,7 @@ test_expect_success 'annotated tag with --create-reflog has correct message' '
git tag -m "annotated tag" --create-reflog tag_with_reflog &&
git reflog exists refs/tags/tag_with_reflog &&
sed -e "s/^.* //" .git/logs/refs/tags/tag_with_reflog >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
test_expect_success '--create-reflog does not create reflog on failure' '
@ -1434,7 +1434,7 @@ test_expect_success 'message in editor has initial comment: first line' '
@@ -1434,7 +1434,7 @@ test_expect_success 'message in editor has initial comment: first line' '
# check the first line --- should be empty
echo >first.expect &&
sed -e 1q <actual >first.actual &&
test_i18ncmp first.expect first.actual
test_cmp first.expect first.actual
'
test_expect_success \
@ -1757,7 +1757,7 @@ test_expect_success 'recursive tagging should give advice' '
@@ -1757,7 +1757,7 @@ test_expect_success 'recursive tagging should give advice' '
hint: Disable this message with "git config advice.nestedTag false"
EOF
git tag -m nested nested annotated-v4.0 2>actual &&
test_i18ncmp expect actual
test_cmp expect actual
'
test_expect_success 'multiple --points-at are OR-ed together' '
@ -55,7 +55,7 @@ test_expect_success 'add aborts on repository with no commits' '
@@ -55,7 +55,7 @@ test_expect_success 'add aborts on repository with no commits' '
@ -174,7 +174,7 @@ test_expect_success 'submodule update --init from and of subdirectory' '
@@ -174,7 +174,7 @@ test_expect_success 'submodule update --init from and of subdirectory' '
git submodule update --init sub 2>../../actual2
)
) &&
test_i18ncmp expect2 actual2
test_cmp expect2 actual2
'
test_expect_success 'submodule update does not fetch already present commits' '
@ -192,7 +192,7 @@ test_expect_success 'submodule update does not fetch already present commits' '
@@ -192,7 +192,7 @@ test_expect_success 'submodule update does not fetch already present commits' '
test_expect_success 'submodule update - command run for initial population of submodule' '
@ -488,7 +488,7 @@ test_expect_success 'submodule update - command run for initial population of su
@@ -488,7 +488,7 @@ test_expect_success 'submodule update - command run for initial population of su
EOF
rm -rf super/submodule &&
test_must_fail git -C super submodule update 2>actual &&
# A sanity check to see if commit is working at all.
@ -356,7 +356,7 @@ test_expect_success 'new line found before status message in commit template' '
@@ -356,7 +356,7 @@ test_expect_success 'new line found before status message in commit template' '
no changes added to commit (use "git add" and/or "git commit -a")
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
@ -180,7 +180,7 @@ Changes to be committed:
@@ -180,7 +180,7 @@ Changes to be committed:
Untracked files not listed (use -u option to show untracked files)
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
@ -210,7 +210,7 @@ You are currently editing a commit while rebasing branch '\''rebase_i_edit'\'' o
@@ -210,7 +210,7 @@ You are currently editing a commit while rebasing branch '\''rebase_i_edit'\'' o
nothing to commit (use -u to show untracked files)
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
@ -249,7 +249,7 @@ Changes not staged for commit:
@@ -249,7 +249,7 @@ Changes not staged for commit:
no changes added to commit (use "git add" and/or "git commit -a")
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
@ -282,7 +282,7 @@ You are currently editing a commit while rebasing branch '\''amend_last'\'' on '
@@ -282,7 +282,7 @@ You are currently editing a commit while rebasing branch '\''amend_last'\'' on '
nothing to commit (use -u to show untracked files)
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
@ -321,7 +321,7 @@ You are currently editing a commit while rebasing branch '\''several_edits'\'' o
@@ -321,7 +321,7 @@ You are currently editing a commit while rebasing branch '\''several_edits'\'' o
nothing to commit (use -u to show untracked files)
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
@ -356,7 +356,7 @@ Changes not staged for commit:
@@ -356,7 +356,7 @@ Changes not staged for commit:
no changes added to commit (use "git add" and/or "git commit -a")
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
@ -387,7 +387,7 @@ You are currently editing a commit while rebasing branch '\''several_edits'\'' o
@@ -387,7 +387,7 @@ You are currently editing a commit while rebasing branch '\''several_edits'\'' o
nothing to commit (use -u to show untracked files)
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
@ -418,7 +418,7 @@ You are currently editing a commit while rebasing branch '\''several_edits'\'' o
@@ -418,7 +418,7 @@ You are currently editing a commit while rebasing branch '\''several_edits'\'' o
nothing to commit (use -u to show untracked files)
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
@ -454,7 +454,7 @@ Changes not staged for commit:
@@ -454,7 +454,7 @@ Changes not staged for commit:
no changes added to commit (use "git add" and/or "git commit -a")
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
@ -486,7 +486,7 @@ You are currently editing a commit while rebasing branch '\''several_edits'\'' o
@@ -486,7 +486,7 @@ You are currently editing a commit while rebasing branch '\''several_edits'\'' o
nothing to commit (use -u to show untracked files)
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
@ -519,7 +519,7 @@ You are currently editing a commit while rebasing branch '\''several_edits'\'' o
@@ -519,7 +519,7 @@ You are currently editing a commit while rebasing branch '\''several_edits'\'' o
nothing to commit (use -u to show untracked files)
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
@ -557,7 +557,7 @@ Changes not staged for commit:
@@ -557,7 +557,7 @@ Changes not staged for commit:
no changes added to commit (use "git add" and/or "git commit -a")
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
@ -591,7 +591,7 @@ You are currently editing a commit while rebasing branch '\''several_edits'\'' o
@@ -591,7 +591,7 @@ You are currently editing a commit while rebasing branch '\''several_edits'\'' o
nothing to commit (use -u to show untracked files)
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
@ -619,7 +619,7 @@ You are in the middle of an am session.
@@ -619,7 +619,7 @@ You are in the middle of an am session.
nothing to commit (use -u to show untracked files)
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
@ -641,7 +641,7 @@ You are in the middle of an am session.
@@ -641,7 +641,7 @@ You are in the middle of an am session.
nothing to commit (use -u to show untracked files)
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
@ -664,7 +664,7 @@ The current patch is empty.
@@ -664,7 +664,7 @@ The current patch is empty.
nothing to commit (use -u to show untracked files)
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
@ -687,7 +687,7 @@ You are currently bisecting, started from branch '\''bisect'\''.
@@ -687,7 +687,7 @@ You are currently bisecting, started from branch '\''bisect'\''.
nothing to commit (use -u to show untracked files)
no changes added to commit (use "git add" and/or "git commit -a")
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
test_expect_success 'status while reverting commit (conflicts resolved)' '
@ -872,7 +872,7 @@ Changes to be committed:
@@ -872,7 +872,7 @@ Changes to be committed:
Untracked files not listed (use -u option to show untracked files)
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
test_expect_success 'status after reverting commit' '
@ -882,7 +882,7 @@ On branch main
@@ -882,7 +882,7 @@ On branch main
nothing to commit (use -u to show untracked files)
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
test_expect_success 'status while reverting after committing conflict resolution' '
@ -901,7 +901,7 @@ Revert currently in progress.
@@ -901,7 +901,7 @@ Revert currently in progress.
nothing to commit (use -u to show untracked files)
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
test_expect_success 'prepare for different number of commits rebased' '
@ -931,7 +931,7 @@ You are currently editing a commit while rebasing branch '\''several_commits'\''
@@ -931,7 +931,7 @@ You are currently editing a commit while rebasing branch '\''several_commits'\''
nothing to commit (use -u to show untracked files)
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
test_expect_success 'status: two commands done with some white lines in done file' '
@ -959,7 +959,7 @@ You are currently editing a commit while rebasing branch '\''several_commits'\''
@@ -959,7 +959,7 @@ You are currently editing a commit while rebasing branch '\''several_commits'\''
nothing to commit (use -u to show untracked files)
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
test_expect_success 'status: two remaining commands with some white lines in todo file' '
@ -988,7 +988,7 @@ You are currently editing a commit while rebasing branch '\''several_commits'\''
@@ -988,7 +988,7 @@ You are currently editing a commit while rebasing branch '\''several_commits'\''
nothing to commit (use -u to show untracked files)
EOF
git status --untracked-files=no >actual &&
test_i18ncmp expected actual
test_cmp expected actual
'
test_expect_success 'status: handle not-yet-started rebase -i gracefully' '
@ -1007,7 +1007,7 @@ You are currently editing a commit while rebasing branch '\''several_commits'\''
@@ -1007,7 +1007,7 @@ You are currently editing a commit while rebasing branch '\''several_commits'\''
nothing to commit (use -u to show untracked files)
@ -30,7 +30,7 @@ test_expect_success 'Verify behavior of status on directories with ignored files
@@ -30,7 +30,7 @@ test_expect_success 'Verify behavior of status on directories with ignored files
git status --porcelain=v2 --ignored=matching --untracked-files=all >output &&
test_i18ncmp expect output
test_cmp expect output
'
test_expect_success 'Verify status behavior on directory with tracked & ignored files' '
@ -55,7 +55,7 @@ test_expect_success 'Verify status behavior on directory with tracked & ignored
@@ -55,7 +55,7 @@ test_expect_success 'Verify status behavior on directory with tracked & ignored
git commit -m "commit tracked files" &&
git status --porcelain=v2 --ignored=matching --untracked-files=all >output &&
test_i18ncmp expect output
test_cmp expect output
'
test_expect_success 'Verify status behavior on directory with untracked and ignored files' '
@ -80,7 +80,7 @@ test_expect_success 'Verify status behavior on directory with untracked and igno
@@ -80,7 +80,7 @@ test_expect_success 'Verify status behavior on directory with untracked and igno
git status --porcelain=v2 --ignored=matching --untracked-files=normal >output &&
test_i18ncmp expect output
test_cmp expect output
'
test_expect_success 'Verify status behavior on ignored directory containing tracked file' '
@ -176,7 +176,7 @@ test_expect_success 'Verify status behavior on ignored directory containing trac
@@ -176,7 +176,7 @@ test_expect_success 'Verify status behavior on ignored directory containing trac
git add -f ignored_dir/tracked &&
git commit -m "Force add file in ignored directory" &&
git status --porcelain=v2 --ignored=matching --untracked-files=normal >output &&
test_i18ncmp expect output
test_cmp expect output
'
test_expect_success 'Verify behavior of status with --ignored=no' '
@ -191,7 +191,7 @@ test_expect_success 'Verify behavior of status with --ignored=no' '
@@ -191,7 +191,7 @@ test_expect_success 'Verify behavior of status with --ignored=no' '
git status --porcelain=v2 --ignored=no --untracked-files=all >output &&
test_i18ncmp expect output
test_cmp expect output
'
test_expect_success 'Verify behavior of status with --ignored=traditional and --untracked-files=all' '
@ -210,7 +210,7 @@ test_expect_success 'Verify behavior of status with --ignored=traditional and --
@@ -210,7 +210,7 @@ test_expect_success 'Verify behavior of status with --ignored=traditional and --
git status --porcelain=v2 --ignored=traditional --untracked-files=all >output &&
test_i18ncmp expect output
test_cmp expect output
'
test_expect_success 'Verify behavior of status with --ignored=traditional and --untracked-files=normal' '
@ -227,7 +227,7 @@ test_expect_success 'Verify behavior of status with --ignored=traditional and --
@@ -227,7 +227,7 @@ test_expect_success 'Verify behavior of status with --ignored=traditional and --