From mboxrd@z Thu Jan 1 00:00:00 1970 From: Justin Lebar Subject: [PATCH 3/4] Fix misuses of "nor" in comments Date: Thu, 20 Mar 2014 15:16:24 -0700 Message-ID: <1395353785-23611-4-git-send-email-jlebar@google.com> References: <1395353785-23611-1-git-send-email-jlebar@google.com> Cc: Justin Lebar , Richard Hansen , "Shawn O. Pearce" , Jeff King , Jonathan Nieder , Justin Lebar To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Thu Mar 20 23:17:13 2014 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WQlGx-0006RK-1P for gcvg-git-2@plane.gmane.org; Thu, 20 Mar 2014 23:17:11 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760085AbaCTWQ6 (ORCPT ); Thu, 20 Mar 2014 18:16:58 -0400 Received: from mail-pd0-f201.google.com ([209.85.192.201]:64776 "EHLO mail-pd0-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759987AbaCTWQz (ORCPT ); Thu, 20 Mar 2014 18:16:55 -0400 Received: by mail-pd0-f201.google.com with SMTP id x10so196701pdj.4 for ; Thu, 20 Mar 2014 15:16:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4OyAJFDvQmxTFIcDkjzvYYLWnhVFfWK/oamsH4oQiYU=; b=Wu3FWLLiEZBwXwSBEcdsEv3bhCqyvD6whvuy7sGrfW+ohJ2H2yoOS2SYeN9yGpRyz/ diSHEU7cQceMG38PHSqOJjJoh1j+jxbT4CkLu11QO4+4kAfdze87hGjVxEMGVelqadQo VXN1Kc4QdEoOZ7wRQumeJLCes7g0UU0t9eLVThKCrL+MoXMnhlF6r3KzwCC5/qihWx9S sKCMoEP3c3hZTV5cMyNCYkwQ743SCzbYF/JN62LytC+Qjf/U5Jp5Aw+RwBQAZ9MAZ/Jr bom+RjASiC0vexSFeeneoP4w16IUl2PsbrLlRDrzIIj2ZI5mib1rxbWE0MEHCIy4YYNQ L7jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4OyAJFDvQmxTFIcDkjzvYYLWnhVFfWK/oamsH4oQiYU=; b=ZBEbI8bLDWxqGzAm3qLSc9SiB6vsCdcl20p3yBF4+QQcizpY/dYPGfSpPZGhy90xjD o9RJsxj15Ym2+9g4MCt/5vH8iqqPLcq0XavGP5q9vyLrV1PQOwraxhwffuUpg4a3FmM8 3GP7jV6PICCfY89XaYEeMDONgwxW0baNq/msedAu3017+rQzJhpfkPOZifUH6XXjRKkD SPGgjhviNWv0IzSVX6bK+R02j3HpAebgDrRw0TCvueHt+zLGYBBGR3r+TOca0sZJgIL4 buon3PGuETRL4GtoPnJyM8flKIvtjpMiW9BurpvZK0UMEPQ5vZ+QWhHftWvZyh4rr8Pj vMTw== X-Gm-Message-State: ALoCoQnNuccTwUkKet249AjG8jfUg/u5JgGZVCZhIV4uy5Qztpgxk1E0SQFs6WKS7HPfTmLRmqOgy55pMVugX6dXlTURtGvwQxrC+OsyEwTCLqMt48r9k9e2HEpzcYrZ+0+xgp+JC90xNoTyw0F5sxFhJlx67/6lF8gIif444UtvdX68Lc4QSm1XudL6aEy9OH7fs0vlOJTP X-Received: by 10.66.149.67 with SMTP id ty3mr18040643pab.27.1395353815321; Thu, 20 Mar 2014 15:16:55 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id x29si573033yha.0.2014.03.20.15.16.55 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Mar 2014 15:16:55 -0700 (PDT) Received: from jlebar0.mtv.corp.google.com (jlebar0.mtv.corp.google.com [172.17.132.58]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id F114131C0F4; Thu, 20 Mar 2014 15:16:54 -0700 (PDT) Received: by jlebar0.mtv.corp.google.com (Postfix, from userid 214119) id B5BE31A1653; Thu, 20 Mar 2014 15:16:54 -0700 (PDT) X-Mailer: git-send-email 1.9.0.279.gdc9e3eb In-Reply-To: <1395353785-23611-1-git-send-email-jlebar@google.com> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Signed-off-by: Justin Lebar --- Makefile | 2 +- builtin/apply.c | 2 +- builtin/checkout.c | 2 +- builtin/log.c | 2 +- builtin/pack-objects.c | 2 +- builtin/reset.c | 4 ++-- builtin/show-branch.c | 2 +- column.c | 2 +- contrib/examples/git-checkout.sh | 2 +- contrib/examples/git-reset.sh | 4 ++-- contrib/fast-import/import-directories.perl | 4 ++-- delta.h | 2 +- diff.c | 2 +- git-am.sh | 2 +- gitweb/gitweb.perl | 2 +- http.h | 4 ++-- perl/Git/SVN.pm | 2 +- perl/Git/SVN/Migration.pm | 2 +- pkt-line.h | 2 +- remote.c | 2 +- sha1_file.c | 2 +- test-chmtime.c | 2 +- 22 files changed, 26 insertions(+), 26 deletions(-) diff --git a/Makefile b/Makefile index dddaf4f..fc02788 100644 --- a/Makefile +++ b/Makefile @@ -159,7 +159,7 @@ all:: # # Define NEEDS_LIBINTL_BEFORE_LIBICONV if you need libintl before libiconv. # -# Define NO_INTPTR_T if you don't have intptr_t nor uintptr_t. +# Define NO_INTPTR_T if you don't have intptr_t or uintptr_t. # # Define NO_UINTMAX_T if you don't have uintmax_t. # diff --git a/builtin/apply.c b/builtin/apply.c index b0d0986..6013e19 100644 --- a/builtin/apply.c +++ b/builtin/apply.c @@ -4061,7 +4061,7 @@ static int write_out_one_reject(struct patch *patch) return error(_("cannot open %s: %s"), namebuf, strerror(errno)); /* Normal git tools never deal with .rej, so do not pretend - * this is a git patch by saying --git nor give extended + * this is a git patch by saying --git or giving extended * headers. While at it, maybe please "kompare" that wants * the trailing TAB and some garbage at the end of line ;-). */ diff --git a/builtin/checkout.c b/builtin/checkout.c index ada51fa..7f37d1a 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -895,7 +895,7 @@ static int parse_branchname_arg(int argc, const char **argv, * between A and B, A...B names that merge base. * * (b) If is _not_ a commit, either "--" is present - * or is not a path, no -t nor -b was given, and + * or is not a path, no -t or -b was given, and * and there is a tracking branch whose name is * in one and only one remote, then this is a short-hand to * fork local from that remote-tracking branch. diff --git a/builtin/log.c b/builtin/log.c index b97373d..39e8836 100644 --- a/builtin/log.c +++ b/builtin/log.c @@ -503,7 +503,7 @@ static void show_rev_tweak_rev(struct rev_info *rev, struct setup_revision_opt * /* There was no "-m" on the command line */ rev->ignore_merges = 0; if (!rev->first_parent_only && !rev->combine_merges) { - /* No "--first-parent", "-c", nor "--cc" */ + /* No "--first-parent", "-c", or "--cc" */ rev->combine_merges = 1; rev->dense_combined_merges = 1; } diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c index 541667f..ef1f20e 100644 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@ -999,7 +999,7 @@ static int pbase_tree_cache_ix_incr(int ix) static struct pbase_tree { struct pbase_tree *next; /* This is a phony "cache" entry; we are not - * going to evict it nor find it through _get() + * going to evict it or find it through _get() * mechanism -- this is for the toplevel node that * would almost always change with any commit. */ diff --git a/builtin/reset.c b/builtin/reset.c index a991344..96dd4c9 100644 --- a/builtin/reset.c +++ b/builtin/reset.c @@ -309,7 +309,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix) /* git reset tree [--] paths... can be used to * load chosen paths from the tree into the index without - * affecting the working tree nor HEAD. */ + * affecting the working tree or HEAD. */ if (pathspec.nr) { if (reset_type == MIXED) warning(_("--mixed with paths is deprecated; use 'git reset -- ' instead.")); @@ -327,7 +327,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix) die(_("%s reset is not allowed in a bare repository"), _(reset_type_names[reset_type])); - /* Soft reset does not touch the index file nor the working tree + /* Soft reset does not touch the index file or the working tree * at all, but requires them in a good order. Other resets reset * the index file to the tree object we are switching to. */ if (reset_type == SOFT || reset_type == KEEP) diff --git a/builtin/show-branch.c b/builtin/show-branch.c index d9217ce..53dc042 100644 --- a/builtin/show-branch.c +++ b/builtin/show-branch.c @@ -698,7 +698,7 @@ int cmd_show_branch(int ac, const char **av, const char *prefix) if (extra || reflog) { /* "listing" mode is incompatible with - * independent nor merge-base modes. + * independent and merge-base modes. */ if (independent || merge_base) usage_with_options(show_branch_usage, diff --git a/column.c b/column.c index 9367ba5..1854540 100644 --- a/column.c +++ b/column.c @@ -311,7 +311,7 @@ static int parse_config(unsigned int *colopts, const char *value) value += strspn(value, sep); } /* - * Setting layout implies "always" if neither always, never + * Setting layout implies "always" if neither always, never, * nor auto is specified. * * Current value in COL_ENABLE_MASK is disregarded. This means if diff --git a/contrib/examples/git-checkout.sh b/contrib/examples/git-checkout.sh index 1a7689a..d2c1f98 100755 --- a/contrib/examples/git-checkout.sh +++ b/contrib/examples/git-checkout.sh @@ -168,7 +168,7 @@ cd_to_toplevel # branch. However, if "git checkout HEAD" detaches the HEAD # from the current branch, even though that may be logically # correct, it feels somewhat funny. More importantly, we do not -# want "git checkout" nor "git checkout -f" to detach HEAD. +# want "git checkout" or "git checkout -f" to detach HEAD. detached= detach_warn= diff --git a/contrib/examples/git-reset.sh b/contrib/examples/git-reset.sh index bafeb52..cb1bbf3 100755 --- a/contrib/examples/git-reset.sh +++ b/contrib/examples/git-reset.sh @@ -40,7 +40,7 @@ case "$1" in --) shift ;; esac # git reset --mixed tree [--] paths... can be used to # load chosen paths from the tree into the index without -# affecting the working tree nor HEAD. +# affecting the working tree or HEAD. if test $# != 0 then test "$reset_type" = "--mixed" || @@ -60,7 +60,7 @@ then update=-u fi -# Soft reset does not touch the index file nor the working tree +# Soft reset does not touch the index file or the working tree # at all, but requires them in a good order. Other resets reset # the index file to the tree object we are switching to. if test "$reset_type" = "--soft" diff --git a/contrib/fast-import/import-directories.perl b/contrib/fast-import/import-directories.perl index 7f3afa5..4dec1f1 100755 --- a/contrib/fast-import/import-directories.perl +++ b/contrib/fast-import/import-directories.perl @@ -109,8 +109,8 @@ was available previously is not included in this revision, it will be removed. If an on-disk revision is incomplete, you can point to files from -a previous revision. There are no restriction as to where the source -files are located, nor to the names of them. +a previous revision. There are no restrictions on where the source +files are located, nor on their names. [3.files] ; the key is the path inside the repository, the value is the path diff --git a/delta.h b/delta.h index b9d333d..9b67531 100644 --- a/delta.h +++ b/delta.h @@ -9,7 +9,7 @@ struct delta_index; * * This returns a pointer to a struct delta_index that should be passed to * subsequent create_delta() calls, or to free_delta_index(). A NULL pointer - * is returned on failure. The given buffer must not be freed nor altered + * is returned on failure. The given buffer must not be freed or altered * before free_delta_index() is called. The returned pointer must be freed * using free_delta_index(). */ diff --git a/diff.c b/diff.c index 1cd4672..635dee2 100644 --- a/diff.c +++ b/diff.c @@ -3942,7 +3942,7 @@ static int diff_scoreopt_parse(const char *opt) } } if (cmd != 'M' && cmd != 'C' && cmd != 'B') - return -1; /* that is not a -M, -C nor -B option */ + return -1; /* that is not a -M, -C, or -B option */ opt1 = parse_rename_score(&opt); if (cmd != 'B') diff --git a/git-am.sh b/git-am.sh index bbea430..e92e5bb 100755 --- a/git-am.sh +++ b/git-am.sh @@ -523,7 +523,7 @@ Use \"git am --abort\" to remove it.")" esac fi - # Make sure we are not given --skip, --continue, nor --abort + # Make sure we are not given --skip, --continue, or --abort test "$skip$resolved$abort" = "" || die "$(gettext "Resolve operation not in progress, we are not resuming.")" diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 3bc0f0b..52108b9 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -1490,7 +1490,7 @@ sub is_valid_pathname { my $input = shift; return undef unless defined $input; - # no '.' or '..' as elements of path, i.e. no '.' nor '..' + # no '.' or '..' as elements of path, i.e. no '.' or '..' # at the beginning, at the end, and between slashes. # also this catches doubled slashes if ($input =~ m!(^|/)(|\.|\.\.)(/|$)!) { diff --git a/http.h b/http.h index cd37d58..cba09d1 100644 --- a/http.h +++ b/http.h @@ -13,8 +13,8 @@ /* * We detect based on the cURL version if multi-transfer is * usable in this implementation and define this symbol accordingly. - * This is not something Makefile should set nor users should pass - * via CFLAGS. + * This is not something Makefile should set nor something users should + * pass via CFLAGS. */ #undef USE_CURL_MULTI diff --git a/perl/Git/SVN.pm b/perl/Git/SVN.pm index 6e804a2..62f3293 100644 --- a/perl/Git/SVN.pm +++ b/perl/Git/SVN.pm @@ -1191,7 +1191,7 @@ sub do_fetch { # we can have a branch that was deleted, then re-added # under the same name but copied from another path, in # which case we'll have multiple parents (we don't - # want to break the original ref, nor lose copypath info): + # want to break the original ref or lose copypath info): if (my $log_entry = $self->find_parent_branch($paths, $rev)) { push @{$log_entry->{parents}}, $lc; return $log_entry; diff --git a/perl/Git/SVN/Migration.pm b/perl/Git/SVN/Migration.pm index 30daf35..cf6ffa7 100644 --- a/perl/Git/SVN/Migration.pm +++ b/perl/Git/SVN/Migration.pm @@ -1,6 +1,6 @@ package Git::SVN::Migration; # these version numbers do NOT correspond to actual version numbers -# of git nor git-svn. They are just relative. +# of git or git-svn. They are just relative. # # v0 layout: .git/$id/info/url, refs/heads/$id-HEAD # diff --git a/pkt-line.h b/pkt-line.h index 0a838d1..b6bd8b5 100644 --- a/pkt-line.h +++ b/pkt-line.h @@ -28,7 +28,7 @@ void packet_buf_write(struct strbuf *buf, const char *fmt, ...) __attribute__((f * Read a packetized line into the buffer, which must be at least size bytes * long. The return value specifies the number of bytes read into the buffer. * - * If src_buffer is not NULL (and nor is *src_buffer), it should point to a + * If src_buffer is not NULL (and neither is *src_buffer), it should point to a * buffer containing the packet data to parse, of at least *src_len bytes. * After the function returns, src_buf will be incremented and src_len * decremented by the number of bytes consumed. diff --git a/remote.c b/remote.c index 5f63d55..f43c7a9 100644 --- a/remote.c +++ b/remote.c @@ -1409,7 +1409,7 @@ int match_push_refs(struct ref *src, struct ref **dst, /* * Remote doesn't have it, and we have no * explicit pattern, and we don't have - * --all nor --mirror. + * --all or --mirror. */ goto free_name; diff --git a/sha1_file.c b/sha1_file.c index 6e8c05d..b79efe4 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -787,7 +787,7 @@ void close_pack_index(struct packed_git *p) * contain the same set of objects as an existing one. In that case * the resulting file might be different even if its name would be the * same. It is best to close any reference to the old pack before it is - * replaced on disk. Of course no index pointers nor windows for given pack + * replaced on disk. Of course no index pointers or windows for given pack * must subsist at this point. If ever objects from this pack are requested * again, the new version of the pack will be reinitialized through * reprepare_packed_git(). diff --git a/test-chmtime.c b/test-chmtime.c index 0df7487..dfe8a83 100644 --- a/test-chmtime.c +++ b/test-chmtime.c @@ -1,6 +1,6 @@ /* * This program can either change modification time of the given - * file(s) or just print it. The program does not change atime nor + * file(s) or just print it. The program does not change atime or * ctime (their values are explicitly preserved). * * The mtime can be changed to an absolute value: -- 1.9.0.279.gdc9e3eb