From: David Aguilar Date: Mon, 29 Jul 2013 09:40:57 GMT Subject: Re: [PATCH] More typofixes. Message-ID: In-Reply-To: <20130729081821.GA6758@domone.kolej.mff.cuni.cz> On Mon, Jul 29, 2013 at 1:18 AM, Ondřej Bílka wrote: > 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 > > 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