提交 01689909 编写于 作者: J Justin Lebar 提交者: Junio C Hamano

comments: fix misuses of "nor"

Signed-off-by: NJustin Lebar <jlebar@google.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 e34b2723
...@@ -159,7 +159,7 @@ all:: ...@@ -159,7 +159,7 @@ all::
# #
# Define NEEDS_LIBINTL_BEFORE_LIBICONV if you need libintl before libiconv. # 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. # Define NO_UINTMAX_T if you don't have uintmax_t.
# #
......
...@@ -4061,7 +4061,7 @@ static int write_out_one_reject(struct patch *patch) ...@@ -4061,7 +4061,7 @@ static int write_out_one_reject(struct patch *patch)
return error(_("cannot open %s: %s"), namebuf, strerror(errno)); return error(_("cannot open %s: %s"), namebuf, strerror(errno));
/* Normal git tools never deal with .rej, so do not pretend /* 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 * headers. While at it, maybe please "kompare" that wants
* the trailing TAB and some garbage at the end of line ;-). * the trailing TAB and some garbage at the end of line ;-).
*/ */
......
...@@ -895,7 +895,7 @@ static int parse_branchname_arg(int argc, const char **argv, ...@@ -895,7 +895,7 @@ static int parse_branchname_arg(int argc, const char **argv,
* between A and B, A...B names that merge base. * between A and B, A...B names that merge base.
* *
* (b) If <something> is _not_ a commit, either "--" is present * (b) If <something> is _not_ a commit, either "--" is present
* or <something> is not a path, no -t nor -b was given, and * or <something> is not a path, no -t or -b was given, and
* and there is a tracking branch whose name is <something> * and there is a tracking branch whose name is <something>
* in one and only one remote, then this is a short-hand to * in one and only one remote, then this is a short-hand to
* fork local <something> from that remote-tracking branch. * fork local <something> from that remote-tracking branch.
......
...@@ -503,7 +503,7 @@ static void show_rev_tweak_rev(struct rev_info *rev, struct setup_revision_opt * ...@@ -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 */ /* There was no "-m" on the command line */
rev->ignore_merges = 0; rev->ignore_merges = 0;
if (!rev->first_parent_only && !rev->combine_merges) { 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->combine_merges = 1;
rev->dense_combined_merges = 1; rev->dense_combined_merges = 1;
} }
......
...@@ -999,7 +999,7 @@ static int pbase_tree_cache_ix_incr(int ix) ...@@ -999,7 +999,7 @@ static int pbase_tree_cache_ix_incr(int ix)
static struct pbase_tree { static struct pbase_tree {
struct pbase_tree *next; struct pbase_tree *next;
/* This is a phony "cache" entry; we are not /* 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 * mechanism -- this is for the toplevel node that
* would almost always change with any commit. * would almost always change with any commit.
*/ */
......
...@@ -311,8 +311,8 @@ static int parse_config(unsigned int *colopts, const char *value) ...@@ -311,8 +311,8 @@ static int parse_config(unsigned int *colopts, const char *value)
value += strspn(value, sep); value += strspn(value, sep);
} }
/* /*
* Setting layout implies "always" if neither always, never * If none of "always", "never", and "auto" is specified, then setting
* nor auto is specified. * layout implies "always".
* *
* Current value in COL_ENABLE_MASK is disregarded. This means if * Current value in COL_ENABLE_MASK is disregarded. This means if
* you set column.ui = auto and pass --column=row, then "auto" * you set column.ui = auto and pass --column=row, then "auto"
......
...@@ -168,7 +168,7 @@ cd_to_toplevel ...@@ -168,7 +168,7 @@ cd_to_toplevel
# branch. However, if "git checkout HEAD" detaches the HEAD # branch. However, if "git checkout HEAD" detaches the HEAD
# from the current branch, even though that may be logically # from the current branch, even though that may be logically
# correct, it feels somewhat funny. More importantly, we do not # 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= detached=
detach_warn= detach_warn=
......
...@@ -40,7 +40,7 @@ case "$1" in --) shift ;; esac ...@@ -40,7 +40,7 @@ case "$1" in --) shift ;; esac
# git reset --mixed tree [--] paths... can be used to # git reset --mixed tree [--] paths... can be used to
# load chosen paths from the tree into the index without # 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 if test $# != 0
then then
test "$reset_type" = "--mixed" || test "$reset_type" = "--mixed" ||
...@@ -60,7 +60,7 @@ then ...@@ -60,7 +60,7 @@ then
update=-u update=-u
fi 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 # at all, but requires them in a good order. Other resets reset
# the index file to the tree object we are switching to. # the index file to the tree object we are switching to.
if test "$reset_type" = "--soft" if test "$reset_type" = "--soft"
......
...@@ -109,8 +109,8 @@ =head3 Revision contents section ...@@ -109,8 +109,8 @@ =head3 Revision contents section
be removed. be removed.
If an on-disk revision is incomplete, you can point to files from 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 a previous revision. There are no restrictions on where the source
files are located, nor to the names of them. files are located, nor on their names.
[3.files] [3.files]
; the key is the path inside the repository, the value is the path ; the key is the path inside the repository, the value is the path
......
...@@ -9,7 +9,7 @@ struct delta_index; ...@@ -9,7 +9,7 @@ struct delta_index;
* *
* This returns a pointer to a struct delta_index that should be passed to * 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 * 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 * before free_delta_index() is called. The returned pointer must be freed
* using free_delta_index(). * using free_delta_index().
*/ */
......
...@@ -3942,7 +3942,7 @@ static int diff_scoreopt_parse(const char *opt) ...@@ -3942,7 +3942,7 @@ static int diff_scoreopt_parse(const char *opt)
} }
} }
if (cmd != 'M' && cmd != 'C' && cmd != 'B') 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); opt1 = parse_rename_score(&opt);
if (cmd != 'B') if (cmd != 'B')
......
...@@ -523,7 +523,7 @@ Use \"git am --abort\" to remove it.")" ...@@ -523,7 +523,7 @@ Use \"git am --abort\" to remove it.")"
esac esac
fi 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" = "" || test "$skip$resolved$abort" = "" ||
die "$(gettext "Resolve operation not in progress, we are not resuming.")" die "$(gettext "Resolve operation not in progress, we are not resuming.")"
......
...@@ -1490,7 +1490,7 @@ sub is_valid_pathname { ...@@ -1490,7 +1490,7 @@ sub is_valid_pathname {
my $input = shift; my $input = shift;
return undef unless defined $input; 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. # at the beginning, at the end, and between slashes.
# also this catches doubled slashes # also this catches doubled slashes
if ($input =~ m!(^|/)(|\.|\.\.)(/|$)!) { if ($input =~ m!(^|/)(|\.|\.\.)(/|$)!) {
......
...@@ -13,8 +13,7 @@ ...@@ -13,8 +13,7 @@
/* /*
* We detect based on the cURL version if multi-transfer is * We detect based on the cURL version if multi-transfer is
* usable in this implementation and define this symbol accordingly. * usable in this implementation and define this symbol accordingly.
* This is not something Makefile should set nor users should pass * This shouldn't be set by the Makefile or by the user (e.g. via CFLAGS).
* via CFLAGS.
*/ */
#undef USE_CURL_MULTI #undef USE_CURL_MULTI
......
...@@ -1191,7 +1191,7 @@ sub do_fetch { ...@@ -1191,7 +1191,7 @@ sub do_fetch {
# we can have a branch that was deleted, then re-added # we can have a branch that was deleted, then re-added
# under the same name but copied from another path, in # under the same name but copied from another path, in
# which case we'll have multiple parents (we don't # 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)) { if (my $log_entry = $self->find_parent_branch($paths, $rev)) {
push @{$log_entry->{parents}}, $lc; push @{$log_entry->{parents}}, $lc;
return $log_entry; return $log_entry;
......
package Git::SVN::Migration; package Git::SVN::Migration;
# these version numbers do NOT correspond to actual version numbers # 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 # v0 layout: .git/$id/info/url, refs/heads/$id-HEAD
# #
......
...@@ -28,10 +28,10 @@ void packet_buf_write(struct strbuf *buf, const char *fmt, ...) __attribute__((f ...@@ -28,10 +28,10 @@ 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 * 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. * 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 and *src_buffer are not NULL, it should point to a buffer
* buffer containing the packet data to parse, of at least *src_len bytes. * containing the packet data to parse, of at least *src_len bytes. After the
* After the function returns, src_buf will be incremented and src_len * function returns, src_buf will be incremented and src_len decremented by the
* decremented by the number of bytes consumed. * number of bytes consumed.
* *
* If src_buffer (or *src_buffer) is NULL, then data is read from the * If src_buffer (or *src_buffer) is NULL, then data is read from the
* descriptor "fd". * descriptor "fd".
......
...@@ -1409,7 +1409,7 @@ int match_push_refs(struct ref *src, struct ref **dst, ...@@ -1409,7 +1409,7 @@ int match_push_refs(struct ref *src, struct ref **dst,
/* /*
* Remote doesn't have it, and we have no * Remote doesn't have it, and we have no
* explicit pattern, and we don't have * explicit pattern, and we don't have
* --all nor --mirror. * --all or --mirror.
*/ */
goto free_name; goto free_name;
......
...@@ -787,7 +787,7 @@ void close_pack_index(struct packed_git *p) ...@@ -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 * 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 * 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 * 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 * must subsist at this point. If ever objects from this pack are requested
* again, the new version of the pack will be reinitialized through * again, the new version of the pack will be reinitialized through
* reprepare_packed_git(). * reprepare_packed_git().
......
/* /*
* This program can either change modification time of the given * 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). * ctime (their values are explicitly preserved).
* *
* The mtime can be changed to an absolute value: * The mtime can be changed to an absolute value:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册