* [PATCH 0/7] Fix typos
@ 2024-10-09 11:49 Andrew Kreimer
2024-10-09 11:49 ` [PATCH 1/7] compat: fix typos Andrew Kreimer
` (6 more replies)
0 siblings, 7 replies; 10+ messages in thread
From: Andrew Kreimer @ 2024-10-09 11:49 UTC (permalink / raw)
To: git; +Cc: Andrew Kreimer
Fix typos in documentation, comments and messages.
Synced with:
- e1dc6361a9532f9c7e2f8010615f63a659bd92bc (seen) Merge branch 'ds/path-walk' into seen
Tested:
- Debian 6.1.106-3 (2024-08-26) x86_64 GNU/Linux
Andrew Kreimer (7):
compat: fix typos
contrib: fix typos
git-gui: Fix typos
t: fix typos
t/perf: fix typos
t/unit-tests: fix typos
t/helper: fix a typo
compat/fsmonitor/fsm-listen-win32.c | 4 ++--
compat/regex/regexec.c | 2 +-
compat/simple-ipc/ipc-unix-socket.c | 2 +-
contrib/completion/git-completion.bash | 4 ++--
contrib/subtree/git-subtree.sh | 2 +-
contrib/subtree/t/t7900-subtree.sh | 2 +-
git-gui/lib/status_bar.tcl | 2 +-
git-gui/lib/themed.tcl | 2 +-
t/helper/test-rot13-filter.c | 2 +-
t/lib-bundle.sh | 2 +-
t/lib-rebase.sh | 2 +-
t/lib-sudo.sh | 2 +-
t/lib-unicode-nfc-nfd.sh | 2 +-
t/perf/p7527-builtin-fsmonitor.sh | 2 +-
t/perf/perf-lib.sh | 4 ++--
t/unit-tests/t-reftable-basics.c | 2 +-
t/unit-tests/t-reftable-merged.c | 2 +-
17 files changed, 20 insertions(+), 20 deletions(-)
--
2.39.5
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/7] compat: fix typos
2024-10-09 11:49 [PATCH 0/7] Fix typos Andrew Kreimer
@ 2024-10-09 11:49 ` Andrew Kreimer
2024-10-10 6:55 ` Patrick Steinhardt
2024-10-09 11:49 ` [PATCH 2/7] contrib: " Andrew Kreimer
` (5 subsequent siblings)
6 siblings, 1 reply; 10+ messages in thread
From: Andrew Kreimer @ 2024-10-09 11:49 UTC (permalink / raw)
To: git; +Cc: Andrew Kreimer
Fix typos via codespell.
Signed-off-by: Andrew Kreimer <algonell@gmail.com>
---
compat/fsmonitor/fsm-listen-win32.c | 4 ++--
compat/regex/regexec.c | 2 +-
compat/simple-ipc/ipc-unix-socket.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/compat/fsmonitor/fsm-listen-win32.c b/compat/fsmonitor/fsm-listen-win32.c
index 80e092b511..9a6efc9bea 100644
--- a/compat/fsmonitor/fsm-listen-win32.c
+++ b/compat/fsmonitor/fsm-listen-win32.c
@@ -431,9 +431,9 @@ static int recv_rdcw_watch(struct one_watch *watch)
* but I observed ERROR_ACCESS_DENIED (0x05) errors during
* 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.
- * (These might be properies of the parent directory, for
+ * (These might be properties of the parent directory, for
* example).
*
* NEEDSWORK: We might try to check for the deleted directory
diff --git a/compat/regex/regexec.c b/compat/regex/regexec.c
index e92be5741d..15ab2d1d40 100644
--- a/compat/regex/regexec.c
+++ b/compat/regex/regexec.c
@@ -292,7 +292,7 @@ compat_symbol (libc, __compat_regexec, regexec, GLIBC_2_0);
concerned.
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 is stored in REGS. (For the "_2" variants, the offsets are
computed relative to the concatenation, not relative to the individual
strings.)
diff --git a/compat/simple-ipc/ipc-unix-socket.c b/compat/simple-ipc/ipc-unix-socket.c
index 57d919c6b4..7db3b2a897 100644
--- a/compat/simple-ipc/ipc-unix-socket.c
+++ b/compat/simple-ipc/ipc-unix-socket.c
@@ -713,7 +713,7 @@ static int accept_thread__wait_for_connection(
* Block SIGPIPE in this thread for the life of the thread. This
* avoids any stray SIGPIPE signals when closing pipe fds under
* 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)
{
--
2.39.5
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/7] contrib: fix typos
2024-10-09 11:49 [PATCH 0/7] Fix typos Andrew Kreimer
2024-10-09 11:49 ` [PATCH 1/7] compat: fix typos Andrew Kreimer
@ 2024-10-09 11:49 ` Andrew Kreimer
2024-10-09 11:49 ` [PATCH 3/7] git-gui: Fix typos Andrew Kreimer
` (4 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Andrew Kreimer @ 2024-10-09 11:49 UTC (permalink / raw)
To: git; +Cc: Andrew Kreimer
Fix typos via codespell.
Signed-off-by: Andrew Kreimer <algonell@gmail.com>
---
contrib/completion/git-completion.bash | 4 ++--
contrib/subtree/git-subtree.sh | 2 +-
contrib/subtree/t/t7900-subtree.sh | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 60a22d619a..3d4dff3185 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -3296,7 +3296,7 @@ __gitcomp_directories ()
# i.e. which are *already* part of their
# sparse-checkout. Thus, normal file and directory
# 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
# strictly narrow the checkout.
COMPREPLY=( "" )
@@ -3698,7 +3698,7 @@ _git_worktree ()
# Here we are not completing an --option, it's either the
# path or a ref.
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
;;
-*) # The previous word is an -o|--option without an
diff --git a/contrib/subtree/git-subtree.sh b/contrib/subtree/git-subtree.sh
index 5dab3f506c..15ae86db1b 100755
--- a/contrib/subtree/git-subtree.sh
+++ b/contrib/subtree/git-subtree.sh
@@ -946,7 +946,7 @@ cmd_split () {
rev=$(git rev-parse -q --verify "$1^{commit}") ||
die "fatal: '$1' does not refer to a commit"
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
repository=""
if test "$#" = 2
diff --git a/contrib/subtree/t/t7900-subtree.sh b/contrib/subtree/t/t7900-subtree.sh
index c3bd2a58b9..3c6103f6d2 100755
--- a/contrib/subtree/t/t7900-subtree.sh
+++ b/contrib/subtree/t/t7900-subtree.sh
@@ -47,7 +47,7 @@ last_commit_subject () {
# 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
# "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:
# - $1
# - $1-sub (added as subtree "sub" in $1)
--
2.39.5
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/7] git-gui: Fix typos
2024-10-09 11:49 [PATCH 0/7] Fix typos Andrew Kreimer
2024-10-09 11:49 ` [PATCH 1/7] compat: fix typos Andrew Kreimer
2024-10-09 11:49 ` [PATCH 2/7] contrib: " Andrew Kreimer
@ 2024-10-09 11:49 ` Andrew Kreimer
2024-10-09 11:49 ` [PATCH 4/7] t: fix typos Andrew Kreimer
` (3 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Andrew Kreimer @ 2024-10-09 11:49 UTC (permalink / raw)
To: git; +Cc: Andrew Kreimer
Fix typos via codespell.
Signed-off-by: Andrew Kreimer <algonell@gmail.com>
---
git-gui/lib/status_bar.tcl | 2 +-
git-gui/lib/themed.tcl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/git-gui/lib/status_bar.tcl b/git-gui/lib/status_bar.tcl
index d32b14142f..a680452524 100644
--- a/git-gui/lib/status_bar.tcl
+++ b/git-gui/lib/status_bar.tcl
@@ -216,7 +216,7 @@ method _delete {current} {
# activity, with the context that there are a few situations where multiple
# overlapping asynchronous operations might want to display status information
# simultaneously. Instances of status_bar_operation are created by calling
-# start on the status_bar, and when the caller is done with its stauts bar
+# start on the status_bar, and when the caller is done with its status bar
# operation, it calls stop on the operation.
class status_bar_operation {
diff --git a/git-gui/lib/themed.tcl b/git-gui/lib/themed.tcl
index f43d84e54f..68c999a9be 100644
--- a/git-gui/lib/themed.tcl
+++ b/git-gui/lib/themed.tcl
@@ -4,7 +4,7 @@
namespace eval color {
# Variable colors
- # Preffered way to set widget colors is using add_option.
+ # Preferred way to set widget colors is using add_option.
# In some cases, like with tags in_diff/in_sel, we use these colors.
variable select_bg lightgray
variable select_fg black
--
2.39.5
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 4/7] t: fix typos
2024-10-09 11:49 [PATCH 0/7] Fix typos Andrew Kreimer
` (2 preceding siblings ...)
2024-10-09 11:49 ` [PATCH 3/7] git-gui: Fix typos Andrew Kreimer
@ 2024-10-09 11:49 ` Andrew Kreimer
2024-10-09 11:49 ` [PATCH 5/7] t/perf: " Andrew Kreimer
` (2 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Andrew Kreimer @ 2024-10-09 11:49 UTC (permalink / raw)
To: git; +Cc: Andrew Kreimer
Fix typos via codespell.
Signed-off-by: Andrew Kreimer <algonell@gmail.com>
---
t/lib-bundle.sh | 2 +-
t/lib-rebase.sh | 2 +-
t/lib-sudo.sh | 2 +-
t/lib-unicode-nfc-nfd.sh | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/t/lib-bundle.sh b/t/lib-bundle.sh
index cf7ed818b2..62b7bb13c8 100644
--- a/t/lib-bundle.sh
+++ b/t/lib-bundle.sh
@@ -11,7 +11,7 @@ convert_bundle_to_pack () {
}
# 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`.
test_bundle_object_count () {
thin=
diff --git a/t/lib-rebase.sh b/t/lib-rebase.sh
index 11d2dc9fe3..0dd764310d 100644
--- a/t/lib-rebase.sh
+++ b/t/lib-rebase.sh
@@ -187,7 +187,7 @@ set_reword_editor () {
exit 1
fi
fi &&
- # There should be no uncommited changes
+ # There should be no uncommitted changes
git diff --exit-code HEAD &&
# The todo-list should be re-read after a reword
GIT_SEQUENCE_EDITOR="\"$PWD/reword-sequence-editor.sh\"" \
diff --git a/t/lib-sudo.sh b/t/lib-sudo.sh
index b4d7788f4e..477e0fdc04 100644
--- a/t/lib-sudo.sh
+++ b/t/lib-sudo.sh
@@ -6,7 +6,7 @@ run_with_sudo () {
local RUN="$TEST_DIRECTORY/$$.sh"
write_script "$RUN" "$TEST_SHELL_PATH"
# 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
sudo "$TEST_SHELL_PATH" -c "\"$RUN\""
ret=$?
diff --git a/t/lib-unicode-nfc-nfd.sh b/t/lib-unicode-nfc-nfd.sh
index 22232247ef..aed0a4dd44 100755
--- a/t/lib-unicode-nfc-nfd.sh
+++ b/t/lib-unicode-nfc-nfd.sh
@@ -74,7 +74,7 @@ test_lazy_prereq UNICODE_NFD_PRESERVED '
# Yielding: \xcf \x89 + \xcc \x94 + \xcd \x82
#
# 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
# ordering also causes a collision in mkdir. However,
# the resulting names don't draw correctly on the
--
2.39.5
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 5/7] t/perf: fix typos
2024-10-09 11:49 [PATCH 0/7] Fix typos Andrew Kreimer
` (3 preceding siblings ...)
2024-10-09 11:49 ` [PATCH 4/7] t: fix typos Andrew Kreimer
@ 2024-10-09 11:49 ` Andrew Kreimer
2024-10-09 11:49 ` [PATCH 6/7] t/unit-tests: " Andrew Kreimer
2024-10-09 11:49 ` [PATCH 7/7] t/helper: fix a typo Andrew Kreimer
6 siblings, 0 replies; 10+ messages in thread
From: Andrew Kreimer @ 2024-10-09 11:49 UTC (permalink / raw)
To: git; +Cc: Andrew Kreimer
Fix typos via codespell.
Signed-off-by: Andrew Kreimer <algonell@gmail.com>
---
t/perf/p7527-builtin-fsmonitor.sh | 2 +-
t/perf/perf-lib.sh | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/t/perf/p7527-builtin-fsmonitor.sh b/t/perf/p7527-builtin-fsmonitor.sh
index c3f9a4caa4..90164327e8 100755
--- a/t/perf/p7527-builtin-fsmonitor.sh
+++ b/t/perf/p7527-builtin-fsmonitor.sh
@@ -95,7 +95,7 @@ test_expect_success "Setup borrowed repo (fsm+uc)" "
# time is not useful.
#
# 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_might_fail git -C $REPO checkout $BALLAST_BR &&
diff --git a/t/perf/perf-lib.sh b/t/perf/perf-lib.sh
index ab0c763411..8ab6d9c469 100644
--- a/t/perf/perf-lib.sh
+++ b/t/perf/perf-lib.sh
@@ -282,7 +282,7 @@ test_perf_ () {
# Run the performance test script specified in perf-test with
# optional prerequisite and setup steps.
# 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
#
test_perf () {
@@ -309,7 +309,7 @@ test_size_ () {
# prerequisites and setup steps. Returns the numeric value
# returned by size-test.
# 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
test_size () {
--
2.39.5
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 6/7] t/unit-tests: fix typos
2024-10-09 11:49 [PATCH 0/7] Fix typos Andrew Kreimer
` (4 preceding siblings ...)
2024-10-09 11:49 ` [PATCH 5/7] t/perf: " Andrew Kreimer
@ 2024-10-09 11:49 ` Andrew Kreimer
2024-10-09 11:49 ` [PATCH 7/7] t/helper: fix a typo Andrew Kreimer
6 siblings, 0 replies; 10+ messages in thread
From: Andrew Kreimer @ 2024-10-09 11:49 UTC (permalink / raw)
To: git; +Cc: Andrew Kreimer
Fix typos via codespell.
Signed-off-by: Andrew Kreimer <algonell@gmail.com>
---
t/unit-tests/t-reftable-basics.c | 2 +-
t/unit-tests/t-reftable-merged.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/unit-tests/t-reftable-basics.c b/t/unit-tests/t-reftable-basics.c
index 1fa77b6faf..a344b27fa3 100644
--- a/t/unit-tests/t-reftable-basics.c
+++ b/t/unit-tests/t-reftable-basics.c
@@ -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 };
check_int(names_length(a), ==, 2);
}
diff --git a/t/unit-tests/t-reftable-merged.c b/t/unit-tests/t-reftable-merged.c
index 3c84363e98..97d28bffe4 100644
--- a/t/unit-tests/t-reftable-merged.c
+++ b/t/unit-tests/t-reftable-merged.c
@@ -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_refs(), "merged table with multiple updates to same ref");
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();
}
--
2.39.5
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 7/7] t/helper: fix a typo
2024-10-09 11:49 [PATCH 0/7] Fix typos Andrew Kreimer
` (5 preceding siblings ...)
2024-10-09 11:49 ` [PATCH 6/7] t/unit-tests: " Andrew Kreimer
@ 2024-10-09 11:49 ` Andrew Kreimer
6 siblings, 0 replies; 10+ messages in thread
From: Andrew Kreimer @ 2024-10-09 11:49 UTC (permalink / raw)
To: git; +Cc: Andrew Kreimer
Fix a typo in comments: bellow -> below.
Signed-off-by: Andrew Kreimer <algonell@gmail.com>
---
t/helper/test-rot13-filter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/helper/test-rot13-filter.c b/t/helper/test-rot13-filter.c
index 7e1d9e0ee4..ff407b575c 100644
--- a/t/helper/test-rot13-filter.c
+++ b/t/helper/test-rot13-filter.c
@@ -9,7 +9,7 @@
* ("clean", "smudge", etc).
*
* 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).
*
* This implementation supports special test cases:
--
2.39.5
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 1/7] compat: fix typos
2024-10-09 11:49 ` [PATCH 1/7] compat: fix typos Andrew Kreimer
@ 2024-10-10 6:55 ` Patrick Steinhardt
2024-10-10 15:14 ` Andrew Kreimer
0 siblings, 1 reply; 10+ messages in thread
From: Patrick Steinhardt @ 2024-10-10 6:55 UTC (permalink / raw)
To: Andrew Kreimer; +Cc: git
On Wed, Oct 09, 2024 at 02:49:34PM +0300, Andrew Kreimer wrote:
> diff --git a/compat/regex/regexec.c b/compat/regex/regexec.c
> index e92be5741d..15ab2d1d40 100644
> --- a/compat/regex/regexec.c
> +++ b/compat/regex/regexec.c
> @@ -292,7 +292,7 @@ compat_symbol (libc, __compat_regexec, regexec, GLIBC_2_0);
> concerned.
>
> 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 is stored in REGS. (For the "_2" variants, the offsets are
> computed relative to the concatenation, not relative to the individual
> strings.)
>
Do we want to fix grammar while at it? s/all group is/all group are/
In any case, this and all of the other patches look good to me. Thanks!
Patrick
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/7] compat: fix typos
2024-10-10 6:55 ` Patrick Steinhardt
@ 2024-10-10 15:14 ` Andrew Kreimer
0 siblings, 0 replies; 10+ messages in thread
From: Andrew Kreimer @ 2024-10-10 15:14 UTC (permalink / raw)
To: Patrick Steinhardt; +Cc: git
On Thu, Oct 10, 2024 at 08:55:08AM +0200, Patrick Steinhardt wrote:
> On Wed, Oct 09, 2024 at 02:49:34PM +0300, Andrew Kreimer wrote:
>
> Do we want to fix grammar while at it? s/all group is/all group are/
>
Absolutely, thank you.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2024-10-10 15:14 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-09 11:49 [PATCH 0/7] Fix typos Andrew Kreimer
2024-10-09 11:49 ` [PATCH 1/7] compat: fix typos Andrew Kreimer
2024-10-10 6:55 ` Patrick Steinhardt
2024-10-10 15:14 ` Andrew Kreimer
2024-10-09 11:49 ` [PATCH 2/7] contrib: " Andrew Kreimer
2024-10-09 11:49 ` [PATCH 3/7] git-gui: Fix typos Andrew Kreimer
2024-10-09 11:49 ` [PATCH 4/7] t: fix typos Andrew Kreimer
2024-10-09 11:49 ` [PATCH 5/7] t/perf: " Andrew Kreimer
2024-10-09 11:49 ` [PATCH 6/7] t/unit-tests: " Andrew Kreimer
2024-10-09 11:49 ` [PATCH 7/7] t/helper: fix a typo Andrew Kreimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).