Thread (5 messages) flat view 5 messages, 4 authors, 2016-06-15

Re: [PATCH] More typofixes.

From: David Aguilar <hidden>
Date: 2016-06-15 22:58:16

On Mon, Jul 29, 2013 at 1:18 AM, Ondřej Bílka [off-list ref] wrote:
quoted hunk ↗ jump to hunk
Hi,

I improved my tool and it catched following additional typos.

As with any big project best way to catch errors is to have automated
checks that catch them ( Other possibility would be to read everything ten
times to get error rate down but nobody wants to do it).

If you want you could add a pre-commit hook
stylepp-spellcheck --hook
that checks comments for likely typos (misspells by aspell and not
occurring in code). It uses aspell to identify them so you need to
teach aspell which words are valid.

I would like make possible to share dictionaries so teaching phase can
be done only once instead for each person but I did not found suitable
workflow yet.


Signed-off-by: Ondřej Bílka <redacted>
diff --git a/pathspec.c b/pathspec.c
index 6ea0867..27ffe77 100644
--- a/pathspec.c
+++ b/pathspec.c
@@ -40,7 +40,7 @@ void add_pathspec_matches_against_index(const char **pathspec,
 /*
  * Finds which of the given pathspecs match items in the index.
  *
- * This is a one-shot wrapper around add_pathspec_matches_against_index()
+ * This is an one-shot wrapper around add_pathspec_matches_against_index()
"one" is pronounced like "wun" so we use "a" instead of "an" here.
These should stay as-is.
-- 
David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help