Skip to content

Commit 235e8d5

Browse files
Justin Lebargitster
Justin Lebar
authored andcommitted
code and test: fix misuses of "nor"
Signed-off-by: Justin Lebar <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0168990 commit 235e8d5

12 files changed

+16
-16
lines changed

builtin/clean.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -903,11 +903,11 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
903903

904904
if (!interactive && !dry_run && !force) {
905905
if (config_set)
906-
die(_("clean.requireForce set to true and neither -i, -n nor -f given; "
906+
die(_("clean.requireForce set to true and neither -i, -n, nor -f given; "
907907
"refusing to clean"));
908908
else
909-
die(_("clean.requireForce defaults to true and neither -i, -n nor -f given; "
910-
"refusing to clean"));
909+
die(_("clean.requireForce defaults to true and neither -i, -n, nor -f given;"
910+
" refusing to clean"));
911911
}
912912

913913
if (force > 1)

builtin/commit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ static int parse_and_validate_options(int argc, const char *argv[],
11231123
if (argc == 0 && only && amend)
11241124
only_include_assumed = _("Clever... amending the last one with dirty index.");
11251125
if (argc > 0 && !also && !only)
1126-
only_include_assumed = _("Explicit paths specified without -i nor -o; assuming --only paths...");
1126+
only_include_assumed = _("Explicit paths specified without -i or -o; assuming --only paths...");
11271127
if (!cleanup_arg || !strcmp(cleanup_arg, "default"))
11281128
cleanup_mode = use_editor ? CLEANUP_ALL : CLEANUP_SPACE;
11291129
else if (!strcmp(cleanup_arg, "verbatim"))

git-add--interactive.perl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,9 +1156,9 @@ sub help_patch_cmd {
11561156
print colored $help_color, <<EOF ;
11571157
y - $verb this hunk$target
11581158
n - do not $verb this hunk$target
1159-
q - quit; do not $verb this hunk nor any of the remaining ones
1159+
q - quit; do not $verb this hunk or any of the remaining ones
11601160
a - $verb this hunk and all later hunks in the file
1161-
d - do not $verb this hunk nor any of the later hunks in the file
1161+
d - do not $verb this hunk or any of the later hunks in the file
11621162
g - select a hunk to go to
11631163
/ - search for a hunk matching the given regex
11641164
j - leave this hunk undecided, see next undecided hunk

perl/Git/SVN.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,8 @@ sub refname {
480480
# It cannot end with a slash /, we'll throw up on this because
481481
# SVN can't have directories with a slash in their name, either:
482482
if ($refname =~ m{/$}) {
483-
die "ref: '$refname' ends with a trailing slash, this is ",
484-
"not permitted by git nor Subversion\n";
483+
die "ref: '$refname' ends with a trailing slash; this is ",
484+
"not permitted by git or Subversion\n";
485485
}
486486

487487
# It cannot have ASCII control character space, tilde ~, caret ^,

sha1_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ static void report_helper(const struct string_list *list,
11231123
const char *msg;
11241124
switch (seen_bits) {
11251125
case 0:
1126-
msg = "no corresponding .idx nor .pack";
1126+
msg = "no corresponding .idx or .pack";
11271127
break;
11281128
case 1:
11291129
msg = "no corresponding .idx";

t/t1001-read-tree-m-2way.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ In the test, these paths are used:
1818
frotz - not in H added in M
1919
nitfol - in H, stays in M unmodified
2020
rezrov - in H, deleted in M
21-
yomin - not in H nor M
21+
yomin - not in H or M
2222
'
2323
. ./test-lib.sh
2424
. "$TEST_DIRECTORY"/lib-read-tree.sh

t/t4005-diff-rename-2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ test_expect_success \
6666

6767
# tree has COPYING and rezrov. work tree has the same COPYING and
6868
# copy-edited COPYING.1, and unchanged rezrov. We should not say
69-
# anything about rezrov nor COPYING, since the revised again diff-raw
69+
# anything about rezrov or COPYING, since the revised again diff-raw
7070
# nows how to say Copy.
7171

7272
test_expect_success \

t/t4009-diff-rename-4.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ test_expect_success \
7373

7474
# tree has COPYING and rezrov. work tree has the same COPYING and
7575
# copy-edited COPYING.1, and unchanged rezrov. We should not say
76-
# anything about rezrov nor COPYING, since the revised again diff-raw
76+
# anything about rezrov or COPYING, since the revised again diff-raw
7777
# nows how to say Copy.
7878

7979
test_expect_success \

t/t5304-prune.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ test_expect_success 'garbage report in count-objects -v' '
213213
warning: garbage found: .git/objects/pack/fake.bar
214214
warning: garbage found: .git/objects/pack/foo
215215
warning: garbage found: .git/objects/pack/foo.bar
216-
warning: no corresponding .idx nor .pack: .git/objects/pack/fake2.keep
216+
warning: no corresponding .idx or .pack: .git/objects/pack/fake2.keep
217217
warning: no corresponding .idx: .git/objects/pack/foo.keep
218218
warning: no corresponding .idx: .git/objects/pack/foo.pack
219219
warning: no corresponding .pack: .git/objects/pack/fake3.idx

t/t6036-recursive-corner-cases.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ test_expect_failure 'git detects conflict w/ criss-cross+contrived resolution' '
388388

389389
#
390390
# criss-cross + d/f conflict via add/add:
391-
# Commit A: Neither file 'a' nor directory 'a/' exist.
391+
# Commit A: Neither file 'a' nor directory 'a/' exists.
392392
# Commit B: Introduce 'a'
393393
# Commit C: Introduce 'a/file'
394394
# Commit D: Merge B & C, keeping 'a' and deleting 'a/'

t/t7104-reset.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ test_expect_success 'reset --hard should restore unmerged ones' '
3333
3434
'
3535

36-
test_expect_success 'reset --hard did not corrupt index nor cached-tree' '
36+
test_expect_success 'reset --hard did not corrupt index or cached-tree' '
3737
3838
T=$(git write-tree) &&
3939
rm -f .git/index &&

t/t9400-git-cvsserver-server.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ test_expect_success 'cvs co -c (shows module database)' '
512512
# Known issues with git-cvsserver current log output:
513513
# - Hard coded "lines: +2 -3" placeholder, instead of real numbers.
514514
# - CVS normally does not internally add a blank first line
515-
# nor a last line with nothing but a space to log messages.
515+
# or a last line with nothing but a space to log messages.
516516
# - The latest cvs 1.12.x server sends +0000 timezone (with some hidden "MT"
517517
# tagging in the protocol), and if cvs 1.12.x client sees the MT tags,
518518
# it converts to local time zone. git-cvsserver doesn't do the +0000

0 commit comments

Comments
 (0)