Skip to content

Commit d59c12d

Browse files
committed
Merge branch 'jl/nor-or-nand-and'
Eradicate mistaken use of "nor" (that is, essentially "nor" used not in "neither A nor B" ;-)) from in-code comments, command output strings, and documentations. * jl/nor-or-nand-and: code and test: fix misuses of "nor" comments: fix misuses of "nor" contrib: fix misuses of "nor" Documentation: fix misuses of "nor"
2 parents 9b30a03 + 235e8d5 commit d59c12d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+88
-90
lines changed

Documentation/CodingGuidelines

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ For shell scripts specifically (not exhaustive):
9191
E.g.: my_function () {
9292

9393
- As to use of grep, stick to a subset of BRE (namely, no \{m,n\},
94-
[::], [==], nor [..]) for portability.
94+
[::], [==], or [..]) for portability.
9595

9696
- We do not use \{m,n\};
9797

9898
- We do not use -E;
9999

100-
- We do not use ? nor + (which are \{0,1\} and \{1,\}
100+
- We do not use ? or + (which are \{0,1\} and \{1,\}
101101
respectively in BRE) but that goes without saying as these
102102
are ERE elements not BRE (note that \? and \+ are not even part
103103
of BRE -- making them accessible from BRE is a GNU extension).

Documentation/config.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ be escaped: use `\"` for `"` and `\\` for `\`.
7878

7979
The following escape sequences (beside `\"` and `\\`) are recognized:
8080
`\n` for newline character (NL), `\t` for horizontal tabulation (HT, TAB)
81-
and `\b` for backspace (BS). No other char escape sequence, nor octal
82-
char sequences are valid.
81+
and `\b` for backspace (BS). Other char escape sequences (including octal
82+
escape sequences) are invalid.
8383

8484
Variable values ending in a `\` are continued on the next line in the
8585
customary UNIX fashion.
@@ -826,7 +826,7 @@ color.diff::
826826
commands will only use color when output is to the terminal.
827827
Defaults to false.
828828
+
829-
This does not affect linkgit:git-format-patch[1] nor the
829+
This does not affect linkgit:git-format-patch[1] or the
830830
'git-diff-{asterisk}' plumbing commands. Can be overridden on the
831831
command line with the `--color[=<when>]` option.
832832

Documentation/diff-generate-patch.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ added, from the point of view of that parent).
174174
In the above example output, the function signature was changed
175175
from both files (hence two `-` removals from both file1 and
176176
file2, plus `++` to mean one line that was added does not appear
177-
in either file1 nor file2). Also eight other lines are the same
177+
in either file1 or file2). Also eight other lines are the same
178178
from file1 but do not appear in file2 (hence prefixed with `+`).
179179

180180
When shown by `git diff-tree -c`, it compares the parents of a

Documentation/diff-options.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ endif::git-log[]
358358
--irreversible-delete::
359359
Omit the preimage for deletes, i.e. print only the header but not
360360
the diff between the preimage and `/dev/null`. The resulting patch
361-
is not meant to be applied with `patch` nor `git apply`; this is
361+
is not meant to be applied with `patch` or `git apply`; this is
362362
solely for people who want to just concentrate on reviewing the
363363
text after the change. In addition, the output obviously lack
364364
enough information to apply such a patch in reverse, even manually,

Documentation/everyday.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ that are not quite ready.
263263
<5> create topic branch as needed and apply, again with my
264264
sign-offs.
265265
<6> rebase internal topic branch that has not been merged to the
266-
master, nor exposed as a part of a stable branch.
266+
master or exposed as a part of a stable branch.
267267
<7> restart `pu` every time from the next.
268268
<8> and bundle topic branches still cooking.
269269
<9> backport a critical fix.

Documentation/git-add.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,9 @@ patch::
300300

301301
y - stage this hunk
302302
n - do not stage this hunk
303-
q - quit; do not stage this hunk nor any of the remaining ones
303+
q - quit; do not stage this hunk or any of the remaining ones
304304
a - stage this hunk and all later hunks in the file
305-
d - do not stage this hunk nor any of the later hunks in the file
305+
d - do not stage this hunk or any of the later hunks in the file
306306
g - select a hunk to go to
307307
/ - search for a hunk matching the given regex
308308
j - leave this hunk undecided, see next undecided hunk

Documentation/git-count-objects.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ size-pack: disk space consumed by the packs, in KiB (unless -H is specified)
3333
prune-packable: the number of loose objects that are also present in
3434
the packs. These objects could be pruned using `git prune-packed`.
3535
+
36-
garbage: the number of files in object database that are not valid
37-
loose objects nor valid packs
36+
garbage: the number of files in object database that are neither valid loose
37+
objects nor valid packs
3838
+
3939
size-garbage: disk space consumed by garbage files, in KiB (unless -H is
4040
specified)

Documentation/git-diff.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ $ git diff --name-status <2>
158158
$ git diff arch/i386 include/asm-i386 <3>
159159
------------
160160
+
161-
<1> Show only modification, rename and copy, but not addition
162-
nor deletion.
161+
<1> Show only modification, rename, and copy, but not addition
162+
or deletion.
163163
<2> Show only names and the nature of change, but not actual
164164
diff output.
165165
<3> Limit diff output to named subtrees.

Documentation/git-prune.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ OPTIONS
5656
EXAMPLE
5757
-------
5858

59-
To prune objects not used by your repository nor another that
59+
To prune objects not used by your repository or another that
6060
borrows from your repository via its
6161
`.git/objects/info/alternates`:
6262

Documentation/git-push.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ will now start building on top of B.
385385
The command by default does not allow an update that is not a fast-forward
386386
to prevent such loss of history.
387387

388-
If you do not want to lose your work (history from X to B) nor the work by
388+
If you do not want to lose your work (history from X to B) or the work by
389389
the other person (history from X to A), you would need to first fetch the
390390
history from the repository, create a history that contains changes done
391391
by both parties, and push the result back.

Documentation/git-read-tree.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ OPTIONS
5757
-n::
5858
--dry-run::
5959
Check if the command would error out, without updating the index
60-
nor the files in the working tree for real.
60+
or the files in the working tree for real.
6161

6262
-v::
6363
Show the progress of checking files out.

Documentation/git-reset.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ to HEAD in all forms.
2121

2222
'git reset' [-q] [<tree-ish>] [--] <paths>...::
2323
This form resets the index entries for all <paths> to their
24-
state at <tree-ish>. (It does not affect the working tree, nor
24+
state at <tree-ish>. (It does not affect the working tree or
2525
the current branch.)
2626
+
2727
This means that `git reset <paths>` is the opposite of `git add
@@ -51,7 +51,7 @@ section of linkgit:git-add[1] to learn how to operate the `--patch` mode.
5151
+
5252
--
5353
--soft::
54-
Does not touch the index file nor the working tree at all (but
54+
Does not touch the index file or the working tree at all (but
5555
resets the head to <commit>, just like all modes do). This leaves
5656
all your changed files "Changes to be committed", as 'git status'
5757
would put it.
@@ -118,7 +118,7 @@ and changes with these files are distracting.
118118
<2> Somebody asks you to pull, and the changes sounds worthy of merging.
119119
<3> However, you already dirtied the index (i.e. your index does
120120
not match the HEAD commit). But you know the pull you are going
121-
to make does not affect frotz.c nor filfre.c, so you revert the
121+
to make does not affect frotz.c or filfre.c, so you revert the
122122
index changes for these two files. Your changes in working tree
123123
remain there.
124124
<4> Then you can pull and merge, leaving frotz.c and filfre.c

Documentation/git-show-branch.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ and/or refs/tags) semi-visually.
2525
It cannot show more than 29 branches and commits at a time.
2626

2727
It uses `showbranch.default` multi-valued configuration items if
28-
no <rev> nor <glob> is given on the command line.
28+
no <rev> or <glob> is given on the command line.
2929

3030

3131
OPTIONS

Documentation/git-show-ref.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ OPTIONS
8989
Show references matching one or more patterns. Patterns are matched from
9090
the end of the full name, and only complete parts are matched, e.g.
9191
'master' matches 'refs/heads/master', 'refs/remotes/origin/master',
92-
'refs/tags/jedi/master' but not 'refs/heads/mymaster' nor
92+
'refs/tags/jedi/master' but not 'refs/heads/mymaster' or
9393
'refs/remotes/master/jedi'.
9494

9595
OUTPUT

Documentation/howto/rebase-from-internal-branch.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ You fetch from upstream, but not merge.
139139
$ git fetch upstream
140140

141141
This leaves the updated upstream head in .git/FETCH_HEAD but
142-
does not touch your .git/HEAD nor .git/refs/heads/master.
142+
does not touch your .git/HEAD or .git/refs/heads/master.
143143
You run "git rebase" now.
144144

145145
$ git rebase FETCH_HEAD master

Documentation/howto/revert-a-faulty-merge.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ where C and D are to fix what was broken in A and B, and you may already
5454
have some other changes on the mainline after W.
5555

5656
If you merge the updated side branch (with D at its tip), none of the
57-
changes made in A nor B will be in the result, because they were reverted
57+
changes made in A or B will be in the result, because they were reverted
5858
by W. That is what Alan saw.
5959

6060
Linus explains the situation:
@@ -90,7 +90,7 @@ with:
9090
$ git revert W
9191

9292
This history would (ignoring possible conflicts between what W and W..Y
93-
changed) be equivalent to not having W nor Y at all in the history:
93+
changed) be equivalent to not having W or Y at all in the history:
9494

9595
---o---o---o---M---x---x-------x----
9696
/

Documentation/howto/revert-branch-rebase.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ $ make clean test ;# make sure it did not cause other breakage.
137137
------------------------------------------------
138138

139139
Everything is in the good order. I do not need the temporary branch
140-
nor tag anymore, so remove them:
140+
or tag anymore, so remove them:
141141

142142
------------------------------------------------
143143
$ rm -f .git/refs/tags/pu-anchor

Documentation/merge-options.txt

+7-8
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,13 @@ merge.
6363

6464
--squash::
6565
--no-squash::
66-
Produce the working tree and index state as if a real
67-
merge happened (except for the merge information),
68-
but do not actually make a commit or
69-
move the `HEAD`, nor record `$GIT_DIR/MERGE_HEAD` to
70-
cause the next `git commit` command to create a merge
71-
commit. This allows you to create a single commit on
72-
top of the current branch whose effect is the same as
73-
merging another branch (or more in case of an octopus).
66+
Produce the working tree and index state as if a real merge
67+
happened (except for the merge information), but do not actually
68+
make a commit, move the `HEAD`, or record `$GIT_DIR/MERGE_HEAD`
69+
(to cause the next `git commit` command to create a merge
70+
commit). This allows you to create a single commit on top of
71+
the current branch whose effect is the same as merging another
72+
branch (or more in case of an octopus).
7473
+
7574
With --no-squash perform the merge and commit the result. This
7675
option can be used to override --squash.

Documentation/pretty-formats.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ The 'raw' format shows the entire commit exactly as
7878
stored in the commit object. Notably, the SHA-1s are
7979
displayed in full, regardless of whether --abbrev or
8080
--no-abbrev are used, and 'parents' information show the
81-
true parent commits, without taking grafts nor history
81+
true parent commits, without taking grafts or history
8282
simplification into account.
8383

8484
* 'format:<string>'

Documentation/pretty-options.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ people using 80-column terminals.
3939
Show the notes (see linkgit:git-notes[1]) that annotate the
4040
commit, when showing the commit log message. This is the default
4141
for `git log`, `git show` and `git whatchanged` commands when
42-
there is no `--pretty`, `--format` nor `--oneline` option given
42+
there is no `--pretty`, `--format`, or `--oneline` option given
4343
on the command line.
4444
+
4545
By default, the notes shown are from the notes refs listed in the

Documentation/rev-list-options.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ list.
237237
reflog entries from the most recent one to older ones.
238238
When this option is used you cannot specify commits to
239239
exclude (that is, '{caret}commit', 'commit1..commit2',
240-
nor 'commit1\...commit2' notations cannot be used).
240+
and 'commit1\...commit2' notations cannot be used).
241241
+
242242
With `--pretty` format other than `oneline` (for obvious reasons),
243243
this causes the output to have two extra lines of information

Documentation/technical/api-gitattributes.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static void setup_check(void)
9999
The attribute is Unset, by listing the name of the
100100
attribute prefixed with a dash - for the path.
101101
} else if (ATTR_UNSET(value)) {
102-
The attribute is not set nor unset for the path.
102+
The attribute is neither set nor unset for the path.
103103
} else if (!strcmp(value, "input")) {
104104
If none of ATTR_TRUE(), ATTR_FALSE(), or ATTR_UNSET() is
105105
true, the value is a string set in the gitattributes

Documentation/technical/pack-protocol.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ The client now sends the maximum commit history depth it wants for
237237
this transaction, which is the number of commits it wants from the
238238
tip of the history, if any, as a 'deepen' line. A depth of 0 is the
239239
same as not making a depth request. The client does not want to receive
240-
any commits beyond this depth, nor objects needed only to complete
241-
those commits. Commits whose parents are not received as a result are
242-
defined as shallow and marked as such in the server. This information
243-
is sent back to the client in the next step.
240+
any commits beyond this depth, nor does it want objects needed only to
241+
complete those commits. Commits whose parents are not received as a
242+
result are defined as shallow and marked as such in the server. This
243+
information is sent back to the client in the next step.
244244

245245
Once all the 'want's and 'shallow's (and optional 'deepen') are
246246
transferred, clients MUST send a flush-pkt, to tell the server side

Documentation/technical/protocol-common.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ More specifically, they:
3939
caret `^`, colon `:`, question-mark `?`, asterisk `*`,
4040
or open bracket `[` anywhere.
4141

42-
. They cannot end with a slash `/` nor a dot `.`.
42+
. They cannot end with a slash `/` or a dot `.`.
4343

4444
. They cannot end with the sequence `.lock`.
4545

Documentation/user-manual.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4074,7 +4074,7 @@ the `HEAD` tree, and stage 3 to the `$target` tree.
40744074

40754075
Earlier we said that trivial merges are done inside
40764076
`git read-tree -m`. For example, if the file did not change
4077-
from `$orig` to `HEAD` nor `$target`, or if the file changed
4077+
from `$orig` to `HEAD` or `$target`, or if the file changed
40784078
from `$orig` to `HEAD` and `$orig` to `$target` the same way,
40794079
obviously the final outcome is what is in `HEAD`. What the
40804080
above example shows is that file `hello.c` was changed from

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ all::
151151
#
152152
# Define NEEDS_LIBINTL_BEFORE_LIBICONV if you need libintl before libiconv.
153153
#
154-
# Define NO_INTPTR_T if you don't have intptr_t nor uintptr_t.
154+
# Define NO_INTPTR_T if you don't have intptr_t or uintptr_t.
155155
#
156156
# Define NO_UINTMAX_T if you don't have uintmax_t.
157157
#

builtin/apply.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4061,7 +4061,7 @@ static int write_out_one_reject(struct patch *patch)
40614061
return error(_("cannot open %s: %s"), namebuf, strerror(errno));
40624062

40634063
/* Normal git tools never deal with .rej, so do not pretend
4064-
* this is a git patch by saying --git nor give extended
4064+
* this is a git patch by saying --git or giving extended
40654065
* headers. While at it, maybe please "kompare" that wants
40664066
* the trailing TAB and some garbage at the end of line ;-).
40674067
*/

builtin/checkout.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ static int parse_branchname_arg(int argc, const char **argv,
895895
* between A and B, A...B names that merge base.
896896
*
897897
* (b) If <something> is _not_ a commit, either "--" is present
898-
* or <something> is not a path, no -t nor -b was given, and
898+
* or <something> is not a path, no -t or -b was given, and
899899
* and there is a tracking branch whose name is <something>
900900
* in one and only one remote, then this is a short-hand to
901901
* fork local <something> from that remote-tracking branch.

builtin/clean.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -904,11 +904,11 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
904904

905905
if (!interactive && !dry_run && !force) {
906906
if (config_set)
907-
die(_("clean.requireForce set to true and neither -i, -n nor -f given; "
907+
die(_("clean.requireForce set to true and neither -i, -n, nor -f given; "
908908
"refusing to clean"));
909909
else
910-
die(_("clean.requireForce defaults to true and neither -i, -n nor -f given; "
911-
"refusing to clean"));
910+
die(_("clean.requireForce defaults to true and neither -i, -n, nor -f given;"
911+
" refusing to clean"));
912912
}
913913

914914
if (force > 1)

builtin/commit.c

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

builtin/log.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ static void show_rev_tweak_rev(struct rev_info *rev, struct setup_revision_opt *
503503
/* There was no "-m" on the command line */
504504
rev->ignore_merges = 0;
505505
if (!rev->first_parent_only && !rev->combine_merges) {
506-
/* No "--first-parent", "-c", nor "--cc" */
506+
/* No "--first-parent", "-c", or "--cc" */
507507
rev->combine_merges = 1;
508508
rev->dense_combined_merges = 1;
509509
}

builtin/pack-objects.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ static int pbase_tree_cache_ix_incr(int ix)
10761076
static struct pbase_tree {
10771077
struct pbase_tree *next;
10781078
/* This is a phony "cache" entry; we are not
1079-
* going to evict it nor find it through _get()
1079+
* going to evict it or find it through _get()
10801080
* mechanism -- this is for the toplevel node that
10811081
* would almost always change with any commit.
10821082
*/

column.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ static int parse_config(unsigned int *colopts, const char *value)
311311
value += strspn(value, sep);
312312
}
313313
/*
314-
* Setting layout implies "always" if neither always, never
315-
* nor auto is specified.
314+
* If none of "always", "never", and "auto" is specified, then setting
315+
* layout implies "always".
316316
*
317317
* Current value in COL_ENABLE_MASK is disregarded. This means if
318318
* you set column.ui = auto and pass --column=row, then "auto"

contrib/examples/git-checkout.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ cd_to_toplevel
168168
# branch. However, if "git checkout HEAD" detaches the HEAD
169169
# from the current branch, even though that may be logically
170170
# correct, it feels somewhat funny. More importantly, we do not
171-
# want "git checkout" nor "git checkout -f" to detach HEAD.
171+
# want "git checkout" or "git checkout -f" to detach HEAD.
172172

173173
detached=
174174
detach_warn=

contrib/examples/git-commit.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ case "$#,$also,$only,$amend" in
280280
0,,,*)
281281
;;
282282
*,,,*)
283-
only_include_assumed="# Explicit paths specified without -i nor -o; assuming --only paths..."
283+
only_include_assumed="# Explicit paths specified without -i or -o; assuming --only paths..."
284284
also=
285285
;;
286286
esac

0 commit comments

Comments
 (0)