"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Omar Polo <op@omarpolo.com>
Subject:
typos
To:
gameoftrees@openbsd.org
Date:
Sun, 08 Sep 2024 23:13:21 +0200

Download raw body.

Thread
  • Omar Polo:

    typos

    • Stefan Sperling:

      typos

all spotted/fixed with codespell(1).  ok?

(if ok, since this touches some diff code, i'll commit in diff.git, then
then sync, then commit the rest.)

diff /home/op/w/got
commit - ae0afea04d6a3be933880828cf2a4eb2b4c2b18e
path + /home/op/w/got
blob - 449e7f731351a6e2fc269a37374878eb3f8af5d4
file + CHANGES
--- CHANGES
+++ CHANGES
@@ -543,7 +543,7 @@
 - tog: add 'L' key to blame view; opens log view for the annotated line (jamsek)
 - don't chug along if repo format version is unsupported (florian)
 - fix dead stores to variables, found with LLVM's scan-build (florian)
-- fix unitialized error return (florian)
+- fix uninitialized error return (florian)
 - make sure got_repo_pack_fds_close() frees a malloc'ed pointer (florian)
 - prevent memory leak when asprintf fails (florian)
 - prevent use-after-free of packed_refs_path in error path (florian)
@@ -655,7 +655,7 @@
 - fix bug in findwixt() which caused pack files with missing parent commits
 - avoid looping over deltas twice in dump_delta_chain_to_{file,mem}()
 - open tempfiles needed for delta application upfront, for future gotwebd
-- reduce GOT_PACK_CACHE_SIZE to 32 to accomodate for previous tempfile change
+- reduce GOT_PACK_CACHE_SIZE to 32 to accommodate for previous tempfile change
 - tog: override SIGTERM and SIGINT handlers to avoid ncurses cleanup() handler
 - move creation of tempfiles outside of lib/diff.c
 - tests: don't pass $ret to test_done on failure when it's known to be zero (op)
@@ -902,7 +902,7 @@
 
 * got 0.55; 2021-07-26
 - display recovery steps in the lonely pack index error message
-- fix double-free that ocurred upon exit from 'tog tree'; found by naddy
+- fix double-free that occurred upon exit from 'tog tree'; found by naddy
 - don't scan pack index offsets for large values if pack file is < 2GB
 - new -X option for removing backups created by got rebase and got histedit
 - add 'got fetch -X' option for deleting references created by 'got fetch'
@@ -928,7 +928,7 @@
 - do not update symlinks which are already up-to-date
 - add a gotadmin utility with info, pack, indexpack, and listpack commands
 - fix 3-way merge of files which lack a final \n
-- make double-quotes appear in rendered got.1 man page as intended (Nam Nguyen)
+- make double-quotes appear in rendered got.1 man page as intended (Name Nguyen)
 - gotweb: render error page instead of returning error 500 (tracey)
 - avoid an error in tog(1) while the terminal window is being resized
 - plug a memory leak in got_ref_list_free()
@@ -949,7 +949,7 @@
 - fix error checking in dial_ssh()
 - increase pack index cache size from 16 to 64 to improve performance
 - fix off-by-one in got_repo_cache_pack() causing the wrong pack to be evicted
-- cap pack file cache size at 1/8 of the current open file desciptor limit
+- cap pack file cache size at 1/8 of the current open file descriptor limit
 - when reading a pack index byte-swap fields at compile-time where possible
 - diff: reduce duplicate code (kn)
 - fix "mandoc -T lint" WARNINGS and ERRORS, add missing word (kn)
blob - 7d5a96f1e25c03524fa8a665ef333fcf3a43fa8f
file + TODO
--- TODO
+++ TODO
@@ -1,7 +1,7 @@
 got:
 - Teach 'got merge' to merge changes into an arbitrary subdirectory
   of the work tree. This would be nice for merging vendor branches.
-  Say you have a branch 'llvm-12' which intially contains a 12.0
+  Say you have a branch 'llvm-12' which initially contains a 12.0
   release tree as published by the LLVM project, added to the repository
   with a command such as 'got import -b llvm-12'. On the main branch we
   would want to merge files from the llvm-12 branch into /usr/src/gnu/llvm
blob - 2aaaecc2e9d45cd6eb0bba01deb76049d231c968
file + cvg/cvg.c
--- cvg/cvg.c
+++ cvg/cvg.c
@@ -8255,7 +8255,7 @@ logmsg_ref(struct got_object_id *id, const char *prefi
 	int			 rebase_in_progress, merge_in_progress;
 
 	/*
-	 * Silenty refuse to create merge reference if any histedit, merge,
+	 * Silently refuse to create merge reference if any histedit, merge,
 	 * or rebase operation is in progress.
 	 */
 	err = got_worktree_histedit_in_progress(&histedit_in_progress,
blob - 1817e3e5ed30160e539643b9331c2c8515ecdd4a
file + got/got.c
--- got/got.c
+++ got/got.c
@@ -10424,7 +10424,7 @@ logmsg_ref(struct got_object_id *id, const char *prefi
 	int			 rebase_in_progress, merge_in_progress;
 
 	/*
-	 * Silenty refuse to create merge reference if any histedit, merge,
+	 * Silently refuse to create merge reference if any histedit, merge,
 	 * or rebase operation is in progress.
 	 */
 	err = got_worktree_histedit_in_progress(&histedit_in_progress,
blob - dfd757252c16a2176bebb823f0fe310ab20cc955
file + gotd/gotd.h
--- gotd/gotd.h
+++ gotd/gotd.h
@@ -176,7 +176,7 @@ struct gotd {
 };
 
 enum gotd_imsg_type {
-	/* An error occured while processing a request. */
+	/* An error occurred while processing a request. */
 	GOTD_IMSG_ERROR,
 
 	/* Commands used by gotctl(8). */
@@ -223,7 +223,7 @@ enum gotd_imsg_type {
 	GOTD_IMSG_REF_UPDATES_START, /* Ref updates starting. */
 	GOTD_IMSG_REF_UPDATE_OK, /* Update went OK. */
 	GOTD_IMSG_REF_UPDATE_NG, /* Update was not good. */
-	GOTD_IMSG_REFS_UPDATED, /* The server proccessed all ref updates. */
+	GOTD_IMSG_REFS_UPDATED, /* The server processed all ref updates. */
 
 	/* Client connections. */
 	GOTD_IMSG_DISCONNECT,
blob - af6fa898b64f8cae67ec5dbd56fe5e7facc9cb1f
file + gotd/libexec/got-notify-http/got-notify-http.c
--- gotd/libexec/got-notify-http/got-notify-http.c
+++ gotd/libexec/got-notify-http/got-notify-http.c
@@ -356,7 +356,7 @@ jsonify_commit(FILE *fp, const char *repo, const char 
 				break;
 			}
 			phase = P_PARENT;
-			/* fallthough */
+			/* fallthrough */
 
 		case P_PARENT:
 			/* optional - more than one */
@@ -625,7 +625,7 @@ jsonify_tag(FILE *fp, const char *repo, const char *us
 				break;
 			}
 			phase = P_OBJECT;
-			/* fallthough */
+			/* fallthrough */
 
 		case P_OBJECT:
 			/* optional */
blob - c285befbcf4f7f53adfe4fe70ef636a4dd1b7671
file + include/got_dial.h
--- include/got_dial.h
+++ include/got_dial.h
@@ -18,7 +18,7 @@
  * Apply any unveil(2) operations required to support the given protocol,
  * as obtained from the 'proto' output parameter of got_dial_parse_uri().
  * This function must be called during initialization of the main program
- * if got_fetch.h or got_send.h funcionality will be used.
+ * if got_fetch.h or got_send.h functionality will be used.
  */
 const struct got_error *got_dial_apply_unveil(const char *proto);
 
blob - 49498058010672bb63ea9d190a831fc8226fe241
file + include/got_diff.h
--- include/got_diff.h
+++ include/got_diff.h
@@ -120,7 +120,7 @@ struct got_diff_blob_output_unidiff_arg {
 	 * offsets and types, with nlines > 0 indicating the length of the
 	 * pre-populated array.  This is useful if the output file already
 	 * contains some lines of text.  The array will be grown as needed to
-	 * accomodate additional offsets and types, and the last offset found
+	 * accommodate additional offsets and types, and the last offset found
 	 * in a pre-populated array will be added to all subsequent offsets.
 	 */
 	size_t nlines;
blob - b3626e6cc55a8ad4c5d1b2e62293dafc283a1c05
file + include/got_reference.h
--- include/got_reference.h
+++ include/got_reference.h
@@ -59,7 +59,7 @@ void got_ref_close(struct got_reference *);
 /* Get the name of the reference. */
 const char *got_ref_get_name(struct got_reference *);
 
-/* Get the name of the reference which a symoblic reference points at. */
+/* Get the name of the reference which a symbolic reference points at. */
 const char *got_ref_get_symref_target(struct got_reference *);
 
 /* Get the last modification timestamp of the reference. */
@@ -130,7 +130,7 @@ void got_ref_list_free(struct got_reflist_head *);
 /*
  * Insert a reference into a reference list.
  * Return a pointer to the newly allocated list entry in *newp.
- * If *newp is NULL and no error occured then the specified reference was
+ * If *newp is NULL and no error occurred then the specified reference was
  * already an element of the list. If *newp is not NULL then the reference
  * was shallow-copied onto the list and should no longer be closed with
  * got_ref_close(). Instead it will be closed along with other list
@@ -147,7 +147,7 @@ got_reflist_sort(struct got_reflist_head *refs, got_re
     void *cmp_arg);
 
 /* Indicate whether the provided reference is symbolic (points at another
- * refernce) or not (points at an object ID). */
+ * reference) or not (points at an object ID). */
 int got_ref_is_symbolic(struct got_reference *);
 
 /* Change the object ID a reference points to. */
blob - 91bfba2775bd8f47a9c55f66b6815495fbc53d7b
file + include/got_worktree.h
--- include/got_worktree.h
+++ include/got_worktree.h
@@ -49,7 +49,7 @@ struct got_fileindex;
  * will be created. The path itself must not yet exist, but the dirname(3)
  * of the path must already exist.
  * The reference provided will be used to determine the new worktree's
- * base commit. The third argument speficies the work tree's path prefix.
+ * base commit. The third argument specifies the work tree's path prefix.
  * The fourth argument specifies the meta data directory to use, which
  * should be either GOT_WORKTREE_GOT_DIR or GOT_WORKTREE_CVG_DIR.
  */
@@ -289,10 +289,10 @@ const struct got_error *got_worktree_commit(struct got
     const char *, int, int, int, got_worktree_commit_msg_cb, void *,
     got_worktree_status_cb, void *, struct got_repository *);
 
-/* Get the path of a commitable worktree item. */
+/* Get the path of a committable worktree item. */
 const char *got_commitable_get_path(struct got_commitable *);
 
-/* Get the status of a commitable worktree item. */
+/* Get the status of a committable worktree item. */
 unsigned int got_commitable_get_status(struct got_commitable *);
 
 /*
@@ -585,7 +585,7 @@ const struct got_error *got_worktree_unstage(struct go
 
 /*
  * Prepare for getting meta data for paths in the work tree.  This
- * function also returns a poniter to a fileindex wihch must be passed
+ * function also returns a pointer to a fileindex which must be passed
  * back to other path_info-related functions and *_version() functions.
  */
 const struct got_error *
blob - ee01a5c028702fdcfa183487d08b0d679cf20893
file + lib/blame.c
--- lib/blame.c
+++ lib/blame.c
@@ -434,7 +434,7 @@ blame_atomize_file(void *arg, struct diff_data *d)
 			    blame->nlines1, blame->line_offsets1);
 	} else if (d->f == blame->f2) {
 		if (d->atoms.len > 0) {
-			/* Re-use data from previous commit. */
+			/* Reuse data from previous commit. */
 			return DIFF_RC_OK;
 		}
 		if (blame->map2)
blob - a7db1e0a59efcecd2ba2b72df8e1ce42604415d4
file + lib/deltify.c
--- lib/deltify.c
+++ lib/deltify.c
@@ -37,7 +37,7 @@
 #endif
 
 /*
- * The algorihm used here is FastCDC (Fast Content-Defined Chunking)
+ * The algorithm used here is FastCDC (Fast Content-Defined Chunking)
  * https://www.usenix.org/conference/atc16/technical-sessions/presentation/xia
  */
 
blob - c886d1a285863fa2148b2b295b733d08fe7c9040
file + lib/diff_myers.c
--- lib/diff_myers.c
+++ lib/diff_myers.c
@@ -1368,7 +1368,7 @@ diff_algo_myers(const struct diff_algo_config *algo_co
 			 * is horizontal, meaning first remove one atom from the
 			 * left before sliding down the snake.
 			 * If right_section_len > left_section_len, the lead-in
-			 * is vetical, so add one atom from the right before
+			 * is vertical, so add one atom from the right before
 			 * sliding down the snake. */
 			if (left_section_len == right_section_len + 1) {
 				if (!diff_state_add_chunk(state, true,
blob - a06df2c36c9d8cb203803661ff563e969a584e88
file + lib/diff_patience.c
--- lib/diff_patience.c
+++ lib/diff_patience.c
@@ -105,7 +105,7 @@ diff_atoms_mark_unique_in_both(struct diff_data *left,
 			       unsigned int *unique_in_both_count)
 {
 	/* Derive the final unique_in_both count without needing an explicit
-	 * iteration. So this is just some optimiziation to save one iteration
+	 * iteration. So this is just some optimization to save one iteration
 	 * in the end. */
 	unsigned int unique_in_both;
 	int r;
blob - 50f01ee324448ac6a14453532234d56701962df1
file + lib/got_lib_privsep.h
--- lib/got_lib_privsep.h
+++ lib/got_lib_privsep.h
@@ -82,7 +82,7 @@
 	GOT_STRINGVAL(GOT_LIBEXECDIR) "/" GOT_STRINGVAL(GOT_PROG_FETCH_HTTP)
 
 enum got_imsg_type {
-	/* An error occured while processing a request. */
+	/* An error occurred while processing a request. */
 	GOT_IMSG_ERROR,
 
 	/* Stop the child process. */
@@ -190,7 +190,7 @@ enum got_imsg_type {
 	GOT_IMSG_RAW_DELTA_REQUEST,
 	GOT_IMSG_RAW_DELTA,
 
-	/* Re-use deltas found in a pack file. */
+	/* Reuse deltas found in a pack file. */
 	GOT_IMSG_DELTA_REUSE_REQUEST,
 	GOT_IMSG_REUSED_DELTAS,
 	GOT_IMSG_DELTA_REUSE_DONE,
@@ -515,7 +515,7 @@ struct got_imsg_packidx {
 	size_t len;
 	off_t packfile_size;
 	int algo;
-	/* Additionally, a file desciptor is passed via imsg. */
+	/* Additionally, a file descriptor is passed via imsg. */
 };
 
 /* Structure for GOT_IMSG_PACK. */
@@ -523,7 +523,7 @@ struct got_imsg_pack {
 	char path_packfile[PATH_MAX];
 	off_t filesize;
 	int algo;
-	/* Additionally, a file desciptor is passed via imsg. */
+	/* Additionally, a file descriptor is passed via imsg. */
 } __attribute__((__packed__));
 
 /*
blob - a43c93bf01b5cb12693933595ad320101db7fc5b
file + lib/path.c
--- lib/path.c
+++ lib/path.c
@@ -187,7 +187,7 @@ got_path_cmp(const char *path1, const char *path2, siz
 	if (len1 == len2 && i >= min_len)
 		return 0;
 
-	/* Skip over redundant trailing path seperators. */
+	/* Skip over redundant trailing path separators. */
 	while (path1[i] == '/' && path1[i + 1] == '/')
 		path1++;
 	while (path2[i] == '/' && path2[i + 1] == '/')
blob - f7bc857b9b977973277020c4b6df2828e8c6bd29
file + lib/reference.c
--- lib/reference.c
+++ lib/reference.c
@@ -1311,7 +1311,7 @@ delete_packed_ref(struct got_reference *delref, struct
 	struct got_reflist_head refs;
 	int found_delref = 0;
 
-	/* The packed-refs file does not cotain symbolic references. */
+	/* The packed-refs file does not contain symbolic references. */
 	if (delref->flags & GOT_REF_IS_SYMBOLIC)
 		return got_error(GOT_ERR_BAD_REF_DATA);
 
blob - 55a49c904e9d8a41678453f55fcedc15a081516f
file + regress/cmdline/add.sh
--- regress/cmdline/add.sh
+++ regress/cmdline/add.sh
@@ -383,7 +383,7 @@ test_add_clashes_with_submodule() {
 
 	got checkout $testroot/repo $testroot/wt > /dev/null
 
-	# Atttempt to add a file clashes with a submodule
+	# Attempt to add a file clashes with a submodule
 	echo "This is a file called repo2" > $testroot/wt/repo2
 	(cd $testroot/wt && got add repo2 > /dev/null)
 
blob - c03acc526e5de0ab93d6adddd739a9d62026408c
file + regress/cmdline/checkout.sh
--- regress/cmdline/checkout.sh
+++ regress/cmdline/checkout.sh
@@ -394,7 +394,7 @@ test_checkout_read_only() {
 	local testroot=`test_init checkout_read_only`
 	local commit_id=`git_show_head $testroot/repo`
 
-	# Make the repostiory read-only
+	# Make the repository read-only
 	chmod -R a-w $testroot/repo
 
 	echo "A  $testroot/wt/alpha" > $testroot/stdout.expected
blob - 11fb8635050e0db41a982075ae634e1ecadb0b6b
file + regress/cmdline/common.sh
--- regress/cmdline/common.sh
+++ regress/cmdline/common.sh
@@ -186,7 +186,7 @@ make_single_file_repo()
 	git_init $repo
 	echo "this is file $file" > $repo/$file
 	git -C $repo add .
-	git_commit $repo -m "intialize $repo with file $file"
+	git_commit $repo -m "initialize $repo with file $file"
 }
 
 get_loose_object_path()
blob - 43c4a8b4c2b0d6b7faedd25e5cc9f3cb3bfed8fa
file + regress/cmdline/patch.sh
--- regress/cmdline/patch.sh
+++ regress/cmdline/patch.sh
@@ -860,7 +860,7 @@ EOF
 		2> $testroot/stderr
 	ret=$?
 	if [ $ret -eq 0 ]; then
-		echo "got patch suceeded unexpectedly" >&2
+		echo "got patch succeeded unexpectedly" >&2
 		test_done $testroot $ret
 		return 1
 	fi
@@ -888,7 +888,7 @@ EOF
 		2> $testroot/stderr
 	ret=$?
 	if [ $ret -eq 0 ]; then
-		echo "got patch suceeded unexpectedly" >&2
+		echo "got patch succeeded unexpectedly" >&2
 		test_done $testroot $ret
 		return 1
 	fi
blob - c824aaf0100a26fa4d112f62f5136272c5c82bbc
file + regress/cmdline/rebase.sh
--- regress/cmdline/rebase.sh
+++ regress/cmdline/rebase.sh
@@ -2012,7 +2012,7 @@ test_rebase_one_commit() {
 		2> $testroot/stderr)
 	ret=$?
 	if [ $ret -ne 0 ]; then
-		echo "rebase comand failed unexpectedly" >&2
+		echo "rebase command failed unexpectedly" >&2
 		diff -u $testroot/stderr.expected $testroot/stderr
 		test_done "$testroot" "1"
 		return 1
@@ -2073,7 +2073,7 @@ test_rebase_merge_commit() {
 		2> $testroot/stderr)
 	ret=$?
 	if [ $ret -ne 0 ]; then
-		echo "merge comand failed unexpectedly" >&2
+		echo "merge command failed unexpectedly" >&2
 		diff -u $testroot/stderr.expected $testroot/stderr
 		test_done "$testroot" "1"
 		return 1
@@ -2171,7 +2171,7 @@ test_rebase_across_merge_commit() {
 		2> $testroot/stderr)
 	ret=$?
 	if [ $ret -ne 0 ]; then
-		echo "merge comand failed unexpectedly" >&2
+		echo "merge command failed unexpectedly" >&2
 		diff -u $testroot/stderr.expected $testroot/stderr
 		test_done "$testroot" "1"
 		return 1
blob - a2518bf858a18dbc66fcb6ad278ee0cfc54f9a8c
file + regress/gotd/README
--- regress/gotd/README
+++ regress/gotd/README
@@ -59,6 +59,6 @@ The test suite switches to non-root users as appropria
 
 The test suite uses netcat on port 2525 to test SMTP notifications.
 If this port is already in use then affected tests might fail.
-If needed the port can be overriden on the make command line:
+If needed the port can be overridden on the make command line:
 
  $ doas make server-regress GOTD_TEST_SMTP_PORT=12345