threads / discuss / 43248

Re: Adding spell checker to GIT

Subject: Re: Adding spell checker to GIT

## tl;dr

8 messages between Dec 5, 2006 and Dec 13, 2006.

replies: 7people: 4as markdown or json

Deepak Barua· Dec 5, 2006, 16:05 UTC · lore

Adding spell checker to GIT

Hi All,
         I am just thought of a idea to integrate a spell checker with
git so that when we check in the code the code comments are spell
checked before being put into the tree,maybe have a optimized
dictionary search.
what about this...? is it appropriate ...?

Regards Deepak

Jakub Narebski· Dec 5, 2006, 16:12 UTC · re: Deepak Barua · lore
Deepak Barua wrote:
Show 5 quoted lines
> Hi All,
>          I am just thought of a idea to integrate a spell checker with
> git so that when we check in the code the code comments are spell
> checked before being put into the tree,maybe have a optimized
> dictionary search.
> what about this...? is it appropriate ...?

As an example pre-commit/commit-msg hook? Take for example distributed with git example of pre-commit hook ensuring that patch is whitespace clean, and commit-msg hook which removes duplicated signoff lines.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Johannes Schindelin· Dec 5, 2006, 16:13 UTC · re: Deepak Barua · lore
Hi,
On Tue, 5 Dec 2006, Deepak Barua wrote:
> I am just thought of a idea to integrate a spell checker with git so 
> that when we check in the code the code comments are spell checked 
> before being put into the tree,maybe have a optimized dictionary search.
I think the best idea would be to put this into the pre-commit hook.

Hth, Dscho

Deepak Barua· Dec 5, 2006, 16:39 UTC · re: Deepak Barua · lore

Adding spell checker to GIT

Hi Jakub & Johannes,
                              Thank you for your help i will consider
the precommit-hook.

Regards Deepak

---------- Forwarded message ----------
From: Deepak Barua <dbbarua@gmail.com>
Date: Dec 5, 2006 9:35 PM
Subject: Adding spell checker to GIT
To: git@vger.kernel.org
Hi All,
        I am just thought of a idea to integrate a spell checker with
git so that when we check in the code the code comments are spell
checked before being put into the tree,maybe have a optimized
dictionary search.
what about this...? is it appropriate ...?

Regards Deepak

-- Code Code Code Away

Andreas Ericsson· Dec 5, 2006, 17:08 UTC · re: Deepak Barua · lore
Deepak Barua wrote:
Show 7 quoted lines
> Hi All,
>         I am just thought of a idea to integrate a spell checker with
> git so that when we check in the code the code comments are spell
> checked before being put into the tree,maybe have a optimized
> dictionary search.
> what about this...? is it appropriate ...?
> 
Sounds like a worthy project for a pre-commit hook, imo.
-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Deepak Barua· Dec 12, 2006, 19:51 UTC · lore
Hi Mr Brand,
                  what you are suggesting seems fine to me but the
thing is should i write a GIT plugin where cani get info to write
one...?

Regards Deepak

On 12/5/06, Horst H. von Brand <vonbrand@inf.utfsm.cl> wrote:
Show 19 quoted lines
> Deepak Barua <dbbarua@gmail.com> wrote:
> >         I am just thought of a idea to integrate a spell checker with
> > git so that when we check in the code the code comments are spell
> > checked before being put into the tree,maybe have a optimized
> > dictionary search.
> > what about this...? is it appropriate ...?
>
> An external tool that spellchecks your code would certainly be nice, but
> I'd vote against integrating it into git (or any other tool for that
> matter). git doesn't care if what is being saved is C code, Malebolge, or a
> collection of dirty pictures. And that is 100% fine with me. Don't kill
> this, it is one of the fundamental Unix strengths.
> --
> Dr. Horst H. von Brand                   User #22616 counter.li.org
> Departamento de Informatica                    Fono: +56 32 2654431
> Universidad Tecnica Federico Santa Maria             +56 32 2654239
> Casilla 110-V, Valparaiso, Chile               Fax:  +56 32 2797513
>
>
Johannes Schindelin· Dec 12, 2006, 20:27 UTC · re: Deepak Barua · lore
Hi,
On Wed, 13 Dec 2006, Deepak Barua wrote:
>                  what you are suggesting seems fine to me but the
> thing is should i write a GIT plugin where cani get info to write
> one...?

For a start, you might want to read Documentation/hooks.txt. Then you want to inspect templates/hooks--pre-commit.

Hth, Dscho

Johannes Schindelin· Dec 13, 2006, 10:25 UTC · lore
Hi,
On Wed, 13 Dec 2006, Sasikumar Kandhasamy wrote:
> We all know that linux is already having some tool like *aspell*. But 
> this is not present in all the versions. This is one major disadvantage 
> of using existing tool.

The advantage is: It already solved most problems for that particular application, like getting all the words for the languages, providing a user interface which actually helps using it, organizing the data structures.

Besides, aspell is open source, just like Git. You can compile and install it.

Hth, Dscho

← back to recent threads