# Re: Adding spell checker to GIT

8 messages from 2006-12-05 to 2006-12-13. Participants: Johannes Schindelin, Deepak Barua, Andreas Ericsson, Jakub Narebski.
Thread: https://gitlist.dev/t/43248

## Deepak Barua, 2006-12-05 16:05

Subject: Adding spell checker to GIT
Message-ID: <b5a19cd20612050805x309d667eq649ba7ef1b8109b7@mail.gmail.com>
URL: https://gitlist.dev/e/b5a19cd20612050805x309d667eq649ba7ef1b8109b7%40mail.gmail.com

```
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, 2006-12-05 16:12

Subject: Re: Adding spell checker to GIT
Message-ID: <el45lt$ibr$1@sea.gmane.org>
URL: https://gitlist.dev/e/el45lt%24ibr%241%40sea.gmane.org
In-Reply-To: <b5a19cd20612050805x309d667eq649ba7ef1b8109b7@mail.gmail.com>

```
Deepak Barua wrote:

> 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, 2006-12-05 16:13

Subject: Re: Adding spell checker to GIT
Message-ID: <Pine.LNX.4.63.0612051713100.28348@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0612051713100.28348%40wbgn013.biozentrum.uni-wuerzburg.de
In-Reply-To: <b5a19cd20612050805x309d667eq649ba7ef1b8109b7@mail.gmail.com>

```
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, 2006-12-05 16:39

Subject: Adding spell checker to GIT
Message-ID: <b5a19cd20612050839y30d06e3bk3a718ef29d0e9328@mail.gmail.com>
URL: https://gitlist.dev/e/b5a19cd20612050839y30d06e3bk3a718ef29d0e9328%40mail.gmail.com
In-Reply-To: <b5a19cd20612050805x309d667eq649ba7ef1b8109b7@mail.gmail.com>

```
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, 2006-12-05 17:08

Subject: Re: Adding spell checker to GIT
Message-ID: <4575A771.3060007@op5.se>
URL: https://gitlist.dev/e/4575A771.3060007%40op5.se
In-Reply-To: <b5a19cd20612050805x309d667eq649ba7ef1b8109b7@mail.gmail.com>

```
Deepak Barua wrote:
> 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, 2006-12-12 19:51

Subject: Re: Adding spell checker to GIT
Message-ID: <b5a19cd20612121151g74bae55fjd022b6314ffcf6c8@mail.gmail.com>
URL: https://gitlist.dev/e/b5a19cd20612121151g74bae55fjd022b6314ffcf6c8%40mail.gmail.com
In-Reply-To: <200612051726.kB5HQO2t015777@laptop13.inf.utfsm.cl>

```
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:
> 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, 2006-12-12 20:27

Subject: Re: Adding spell checker to GIT
Message-ID: <Pine.LNX.4.63.0612122126430.2807@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0612122126430.2807%40wbgn013.biozentrum.uni-wuerzburg.de
In-Reply-To: <b5a19cd20612121151g74bae55fjd022b6314ffcf6c8@mail.gmail.com>

```
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, 2006-12-13 10:25

Subject: Re: Adding spell checker to GIT
Message-ID: <Pine.LNX.4.63.0612131123320.3635@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0612131123320.3635%40wbgn013.biozentrum.uni-wuerzburg.de
In-Reply-To: <d22d265a0612130103o1efcbd87sb93be9c2dad71307@mail.gmail.com>

```
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

```
