Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 0168990

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

File tree

20 files changed

+26
-27
lines changed

20 files changed

+26
-27
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ all::
159159
#
160160
# Define NEEDS_LIBINTL_BEFORE_LIBICONV if you need libintl before libiconv.
161161
#
162-
# Define NO_INTPTR_T if you don't have intptr_t nor uintptr_t.
162+
# Define NO_INTPTR_T if you don't have intptr_t or uintptr_t.
163163
#
164164
# Define NO_UINTMAX_T if you don't have uintmax_t.
165165
#

builtin/apply.c

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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/log.c

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ static int pbase_tree_cache_ix_incr(int ix)
999999
static struct pbase_tree {
10001000
struct pbase_tree *next;
10011001
/* This is a phony "cache" entry; we are not
1002-
* going to evict it nor find it through _get()
1002+
* going to evict it or find it through _get()
10031003
* mechanism -- this is for the toplevel node that
10041004
* would almost always change with any commit.
10051005
*/

column.c

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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-reset.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ case "$1" in --) shift ;; esac
4040

4141
# git reset --mixed tree [--] paths... can be used to
4242
# load chosen paths from the tree into the index without
43-
# affecting the working tree nor HEAD.
43+
# affecting the working tree or HEAD.
4444
if test $# != 0
4545
then
4646
test "$reset_type" = "--mixed" ||
@@ -60,7 +60,7 @@ then
6060
update=-u
6161
fi
6262

63-
# Soft reset does not touch the index file nor the working tree
63+
# Soft reset does not touch the index file or the working tree
6464
# at all, but requires them in a good order. Other resets reset
6565
# the index file to the tree object we are switching to.
6666
if test "$reset_type" = "--soft"

contrib/fast-import/import-directories.perl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ =head3 Revision contents section
109109
be removed.
110110
111111
If an on-disk revision is incomplete, you can point to files from
112-
a previous revision. There are no restriction as to where the source
113-
files are located, nor to the names of them.
112+
a previous revision. There are no restrictions on where the source
113+
files are located, nor on their names.
114114
115115
[3.files]
116116
; the key is the path inside the repository, the value is the path

delta.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct delta_index;
99
*
1010
* This returns a pointer to a struct delta_index that should be passed to
1111
* subsequent create_delta() calls, or to free_delta_index(). A NULL pointer
12-
* is returned on failure. The given buffer must not be freed nor altered
12+
* is returned on failure. The given buffer must not be freed or altered
1313
* before free_delta_index() is called. The returned pointer must be freed
1414
* using free_delta_index().
1515
*/

0 commit comments

Comments
 (0)