Merge branch 'ak/typofixes'
Typofixes. * ak/typofixes: t: fix typos t/helper: fix a typo t/perf: fix typos t/unit-tests: fix typos contrib: fix typos compat: fix typos
This commit is contained in:
@ -431,9 +431,9 @@ static int recv_rdcw_watch(struct one_watch *watch)
|
|||||||
* but I observed ERROR_ACCESS_DENIED (0x05) errors during
|
* but I observed ERROR_ACCESS_DENIED (0x05) errors during
|
||||||
* testing.
|
* testing.
|
||||||
*
|
*
|
||||||
* Note that we only get notificaiton events for events
|
* Note that we only get notification events for events
|
||||||
* *within* the directory, not *on* the directory itself.
|
* *within* the directory, not *on* the directory itself.
|
||||||
* (These might be properies of the parent directory, for
|
* (These might be properties of the parent directory, for
|
||||||
* example).
|
* example).
|
||||||
*
|
*
|
||||||
* NEEDSWORK: We might try to check for the deleted directory
|
* NEEDSWORK: We might try to check for the deleted directory
|
||||||
|
@ -292,7 +292,7 @@ compat_symbol (libc, __compat_regexec, regexec, GLIBC_2_0);
|
|||||||
concerned.
|
concerned.
|
||||||
|
|
||||||
If REGS is not NULL, and BUFP->no_sub is not set, the offsets of the match
|
If REGS is not NULL, and BUFP->no_sub is not set, the offsets of the match
|
||||||
and all groups is stroed in REGS. (For the "_2" variants, the offsets are
|
and all groups are stored in REGS. (For the "_2" variants, the offsets are
|
||||||
computed relative to the concatenation, not relative to the individual
|
computed relative to the concatenation, not relative to the individual
|
||||||
strings.)
|
strings.)
|
||||||
|
|
||||||
|
@ -713,7 +713,7 @@ static int accept_thread__wait_for_connection(
|
|||||||
* Block SIGPIPE in this thread for the life of the thread. This
|
* Block SIGPIPE in this thread for the life of the thread. This
|
||||||
* avoids any stray SIGPIPE signals when closing pipe fds under
|
* avoids any stray SIGPIPE signals when closing pipe fds under
|
||||||
* extremely heavy loads (such as when the fifo queue is full and we
|
* extremely heavy loads (such as when the fifo queue is full and we
|
||||||
* drop incomming connections).
|
* drop incoming connections).
|
||||||
*/
|
*/
|
||||||
static void *accept_thread_proc(void *_accept_thread_data)
|
static void *accept_thread_proc(void *_accept_thread_data)
|
||||||
{
|
{
|
||||||
|
@ -3296,7 +3296,7 @@ __gitcomp_directories ()
|
|||||||
# i.e. which are *already* part of their
|
# i.e. which are *already* part of their
|
||||||
# sparse-checkout. Thus, normal file and directory
|
# sparse-checkout. Thus, normal file and directory
|
||||||
# completion is always useless for "git
|
# completion is always useless for "git
|
||||||
# sparse-checkout add" and is also probelmatic for
|
# sparse-checkout add" and is also problematic for
|
||||||
# "git sparse-checkout set" unless using it to
|
# "git sparse-checkout set" unless using it to
|
||||||
# strictly narrow the checkout.
|
# strictly narrow the checkout.
|
||||||
COMPREPLY=( "" )
|
COMPREPLY=( "" )
|
||||||
@ -3698,7 +3698,7 @@ _git_worktree ()
|
|||||||
# Here we are not completing an --option, it's either the
|
# Here we are not completing an --option, it's either the
|
||||||
# path or a ref.
|
# path or a ref.
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
-b|-B) # Complete refs for branch to be created/reseted.
|
-b|-B) # Complete refs for branch to be created/reset.
|
||||||
__git_complete_refs
|
__git_complete_refs
|
||||||
;;
|
;;
|
||||||
-*) # The previous word is an -o|--option without an
|
-*) # The previous word is an -o|--option without an
|
||||||
|
@ -946,7 +946,7 @@ cmd_split () {
|
|||||||
rev=$(git rev-parse -q --verify "$1^{commit}") ||
|
rev=$(git rev-parse -q --verify "$1^{commit}") ||
|
||||||
die "fatal: '$1' does not refer to a commit"
|
die "fatal: '$1' does not refer to a commit"
|
||||||
else
|
else
|
||||||
die "fatal: you must provide exactly one revision, and optionnally a repository. Got: '$*'"
|
die "fatal: you must provide exactly one revision, and optionally a repository. Got: '$*'"
|
||||||
fi
|
fi
|
||||||
repository=""
|
repository=""
|
||||||
if test "$#" = 2
|
if test "$#" = 2
|
||||||
|
@ -47,7 +47,7 @@ last_commit_subject () {
|
|||||||
# pre-2.32.0 versions of 'git subtree' would write the hash of the tag
|
# pre-2.32.0 versions of 'git subtree' would write the hash of the tag
|
||||||
# (sub1 below), instead of the commit (sub1^{commit}) in the
|
# (sub1 below), instead of the commit (sub1^{commit}) in the
|
||||||
# "git-subtree-split" trailer.
|
# "git-subtree-split" trailer.
|
||||||
# We immitate this behaviour below using a replace ref.
|
# We imitate this behaviour below using a replace ref.
|
||||||
# This function creates 3 repositories:
|
# This function creates 3 repositories:
|
||||||
# - $1
|
# - $1
|
||||||
# - $1-sub (added as subtree "sub" in $1)
|
# - $1-sub (added as subtree "sub" in $1)
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* ("clean", "smudge", etc).
|
* ("clean", "smudge", etc).
|
||||||
*
|
*
|
||||||
* When --always-delay is given all pathnames with the "can-delay" flag
|
* When --always-delay is given all pathnames with the "can-delay" flag
|
||||||
* that don't appear on the list bellow are delayed with a count of 1
|
* that don't appear on the list below are delayed with a count of 1
|
||||||
* (see more below).
|
* (see more below).
|
||||||
*
|
*
|
||||||
* This implementation supports special test cases:
|
* This implementation supports special test cases:
|
||||||
|
@ -11,7 +11,7 @@ convert_bundle_to_pack () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Check count of objects in a bundle file.
|
# Check count of objects in a bundle file.
|
||||||
# We can use "--thin" opiton to check thin pack, which must be fixed by
|
# We can use "--thin" option to check thin pack, which must be fixed by
|
||||||
# command `git-index-pack --fix-thin --stdin`.
|
# command `git-index-pack --fix-thin --stdin`.
|
||||||
test_bundle_object_count () {
|
test_bundle_object_count () {
|
||||||
thin=
|
thin=
|
||||||
|
@ -187,7 +187,7 @@ set_reword_editor () {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi &&
|
fi &&
|
||||||
# There should be no uncommited changes
|
# There should be no uncommitted changes
|
||||||
git diff --exit-code HEAD &&
|
git diff --exit-code HEAD &&
|
||||||
# The todo-list should be re-read after a reword
|
# The todo-list should be re-read after a reword
|
||||||
GIT_SEQUENCE_EDITOR="\"$PWD/reword-sequence-editor.sh\"" \
|
GIT_SEQUENCE_EDITOR="\"$PWD/reword-sequence-editor.sh\"" \
|
||||||
|
@ -6,7 +6,7 @@ run_with_sudo () {
|
|||||||
local RUN="$TEST_DIRECTORY/$$.sh"
|
local RUN="$TEST_DIRECTORY/$$.sh"
|
||||||
write_script "$RUN" "$TEST_SHELL_PATH"
|
write_script "$RUN" "$TEST_SHELL_PATH"
|
||||||
# avoid calling "$RUN" directly so sudo doesn't get a chance to
|
# avoid calling "$RUN" directly so sudo doesn't get a chance to
|
||||||
# override the shell, add aditional restrictions or even reject
|
# override the shell, add additional restrictions or even reject
|
||||||
# running the script because its security policy deem it unsafe
|
# running the script because its security policy deem it unsafe
|
||||||
sudo "$TEST_SHELL_PATH" -c "\"$RUN\""
|
sudo "$TEST_SHELL_PATH" -c "\"$RUN\""
|
||||||
ret=$?
|
ret=$?
|
||||||
|
@ -74,7 +74,7 @@ test_lazy_prereq UNICODE_NFD_PRESERVED '
|
|||||||
# Yielding: \xcf \x89 + \xcc \x94 + \xcd \x82
|
# Yielding: \xcf \x89 + \xcc \x94 + \xcd \x82
|
||||||
#
|
#
|
||||||
# Note that I've used the canonical ordering of the
|
# Note that I've used the canonical ordering of the
|
||||||
# combinining characters. It is also possible to
|
# combining characters. It is also possible to
|
||||||
# swap them. My testing shows that that non-standard
|
# swap them. My testing shows that that non-standard
|
||||||
# ordering also causes a collision in mkdir. However,
|
# ordering also causes a collision in mkdir. However,
|
||||||
# the resulting names don't draw correctly on the
|
# the resulting names don't draw correctly on the
|
||||||
|
@ -95,7 +95,7 @@ test_expect_success "Setup borrowed repo (fsm+uc)" "
|
|||||||
# time is not useful.
|
# time is not useful.
|
||||||
#
|
#
|
||||||
# Create a temp branch and do all work relative to it so that we don't
|
# Create a temp branch and do all work relative to it so that we don't
|
||||||
# accidentially alter the real ballast branch.
|
# accidentally alter the real ballast branch.
|
||||||
#
|
#
|
||||||
test_expect_success "Setup borrowed repo (temp ballast branch)" "
|
test_expect_success "Setup borrowed repo (temp ballast branch)" "
|
||||||
test_might_fail git -C $REPO checkout $BALLAST_BR &&
|
test_might_fail git -C $REPO checkout $BALLAST_BR &&
|
||||||
|
@ -282,7 +282,7 @@ test_perf_ () {
|
|||||||
# Run the performance test script specified in perf-test with
|
# Run the performance test script specified in perf-test with
|
||||||
# optional prerequisite and setup steps.
|
# optional prerequisite and setup steps.
|
||||||
# Options:
|
# Options:
|
||||||
# --prereq prerequisites: Skip the test if prequisites aren't met
|
# --prereq prerequisites: Skip the test if prerequisites aren't met
|
||||||
# --setup "setup-steps": Run setup steps prior to each measured iteration
|
# --setup "setup-steps": Run setup steps prior to each measured iteration
|
||||||
#
|
#
|
||||||
test_perf () {
|
test_perf () {
|
||||||
@ -309,7 +309,7 @@ test_size_ () {
|
|||||||
# prerequisites and setup steps. Returns the numeric value
|
# prerequisites and setup steps. Returns the numeric value
|
||||||
# returned by size-test.
|
# returned by size-test.
|
||||||
# Options:
|
# Options:
|
||||||
# --prereq prerequisites: Skip the test if prequisites aren't met
|
# --prereq prerequisites: Skip the test if prerequisites aren't met
|
||||||
# --setup "setup-steps": Run setup steps prior to the size measurement
|
# --setup "setup-steps": Run setup steps prior to the size measurement
|
||||||
|
|
||||||
test_size () {
|
test_size () {
|
||||||
|
@ -54,7 +54,7 @@ int cmd_main(int argc UNUSED, const char *argv[] UNUSED)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if_test ("names_length retuns size of a NULL-terminated string array") {
|
if_test ("names_length returns size of a NULL-terminated string array") {
|
||||||
const char *a[] = { "a", "b", NULL };
|
const char *a[] = { "a", "b", NULL };
|
||||||
check_int(names_length(a), ==, 2);
|
check_int(names_length(a), ==, 2);
|
||||||
}
|
}
|
||||||
|
@ -467,7 +467,7 @@ int cmd_main(int argc UNUSED, const char *argv[] UNUSED)
|
|||||||
TEST(t_merged_logs(), "merged table with multiple log updates for same ref");
|
TEST(t_merged_logs(), "merged table with multiple log updates for same ref");
|
||||||
TEST(t_merged_refs(), "merged table with multiple updates to same ref");
|
TEST(t_merged_refs(), "merged table with multiple updates to same ref");
|
||||||
TEST(t_merged_seek_multiple_times(), "merged table can seek multiple times");
|
TEST(t_merged_seek_multiple_times(), "merged table can seek multiple times");
|
||||||
TEST(t_merged_single_record(), "ref ocurring in only one record can be fetched");
|
TEST(t_merged_single_record(), "ref occurring in only one record can be fetched");
|
||||||
|
|
||||||
return test_done();
|
return test_done();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user