git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] More typofixes.

From
David Aguilar <davvid@gmail.com>
Date
Jul 29, 2013, 09:40 UTC
Message-ID
<CAJDDKr4M-QjbiF6Yu=JKYvGP1QVm4MwkU0q8d0gDXtys3VAiog@mail.gmail.com>
In-Reply-To
<20130729081821.GA6758@domone.kolej.mff.cuni.cz>
On Mon, Jul 29, 2013 at 1:18 AM, Ondřej Bílka <neleai@seznam.cz> wrote:
Show 31 quoted lines
> 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 <neleai@seznam.cz>
>
> 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
Previous: Ondřej BílkaNext: Ramkumar Ramachandra
Message 2 of 11 in “More typofixes.”
  1. More typofixes.Ondřej Bílka, Jul 29, 2013
  2. David AguilarJul 29, 2013
  3. Ramkumar RamachandraJul 29, 2013
  4. Marc BranchaudJul 29, 2013
  5. Ondřej BílkaJul 29, 2013
  6. Junio C HamanoJul 29, 2013
  7. Junio C HamanoJul 29, 2013
  8. Stefan BellerJul 29, 2013
  9. Marc BranchaudJul 29, 2013
  10. Junio C HamanoJul 29, 2013
  11. Bryan TurnerJul 29, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.