# Git and cogito uses different exclude files

6 messages from 2005-09-16 to 2005-09-17. Participants: Pierre Ossman, Catalin Marinas, Petr Baudis, Junio C Hamano, Sam Ravnborg.
Thread: https://gitlist.dev/t/1823

## Pierre Ossman, 2005-09-16 07:49

Subject: Git and cogito uses different exclude files
Message-ID: <432A7902.20603@drzeus.cx>
URL: https://gitlist.dev/e/432A7902.20603%40drzeus.cx

```
This has probably been pointed out previously, but I couldn't seem to
find it in the archives.

'git status' and 'cg-status'/'stg status' uses different locations for
the exclude files. git expects .git/info/exclude and cogito and stgit
expects .git/exclude. This is easily solved by a symlink but it could be
nice if common files have a single correct location. :)

Rgds
Pierre

```

## Catalin Marinas, 2005-09-16 08:34

Subject: Re: Git and cogito uses different exclude files
Message-ID: <tnxbr2t9zsk.fsf@arm.com>
URL: https://gitlist.dev/e/tnxbr2t9zsk.fsf%40arm.com
In-Reply-To: <432A7902.20603@drzeus.cx>

```
Pierre Ossman <drzeus-list@drzeus.cx> wrote:
> 'git status' and 'cg-status'/'stg status' uses different locations for
> the exclude files. git expects .git/info/exclude and cogito and stgit
> expects .git/exclude. This is easily solved by a symlink but it could be
> nice if common files have a single correct location. :)

The latest StGIT snapshot uses .git/info/exclude. Probably next week I
will make a new StGIT release.

-- 
Catalin

```

## Petr Baudis, 2005-09-16 10:44

Subject: Re: Git and cogito uses different exclude files
Message-ID: <20050916104430.GA25169@pasky.or.cz>
URL: https://gitlist.dev/e/20050916104430.GA25169%40pasky.or.cz
In-Reply-To: <tnxbr2t9zsk.fsf@arm.com>

```
Dear diary, on Fri, Sep 16, 2005 at 10:34:19AM CEST, I got a letter
where Catalin Marinas <catalin.marinas@gmail.com> told me that...
> Pierre Ossman <drzeus-list@drzeus.cx> wrote:
> > 'git status' and 'cg-status'/'stg status' uses different locations for
> > the exclude files. git expects .git/info/exclude and cogito and stgit
> > expects .git/exclude. This is easily solved by a symlink but it could be
> > nice if common files have a single correct location. :)
> 
> The latest StGIT snapshot uses .git/info/exclude. Probably next week I
> will make a new StGIT release.

So does Cogito now. ;-) It still looks at .git/exclude as well and gives
warning if it exists.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
If you want the holes in your knowledge showing up try teaching
someone.  -- Alan Cox

```

## Junio C Hamano, 2005-09-16 16:43

Subject: Re: Git and cogito uses different exclude files
Message-ID: <7vfys5ote8.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vfys5ote8.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <20050916104430.GA25169@pasky.or.cz>

```
Petr Baudis <pasky@suse.cz> writes:

>> The latest StGIT snapshot uses .git/info/exclude. Probably next week I
>> will make a new StGIT release.
>
> So does Cogito now. ;-) It still looks at .git/exclude as well and gives
> warning if it exists.

Late last night I could not find in the list archive the "list
consensus" I used to justify what 'git-status' does in this log
message:

    Message-ID: <7vfysw89do.fsf@assigned-by-dhcp.cox.net>
    From: Junio C Hamano <junkio@cox.net>
    Subject: [PATCH] Teach git-status-script about git-ls-files --others
    Date: Fri, 26 Aug 2005 18:18:59 -0700

    When there is non-empty $GIT_DIR/info/exclude file, use it along
    with .gitignore per-directory exclude pattern files (which was
    a convention agreed on the list while ago and is compatible with
    Cogito) to generate a list of ignored files as well.

    Signed-off-by: Junio C Hamano <junkio@cox.net>

I do remember checking Cogito and StGIT and making sure the use
of .gitignore is consistent with you two, but I do not remember
if we had consensus on info/exclude now.  It could be that I was
just hallucinating back then and ended up forcing this change
onto you and your users by mistake in this round.

Anyway, thanks both.

```

## Petr Baudis, 2005-09-17 05:50

Subject: Re: Git and cogito uses different exclude files
Message-ID: <20050917055009.GB31324@pasky.or.cz>
URL: https://gitlist.dev/e/20050917055009.GB31324%40pasky.or.cz
In-Reply-To: <7vfys5ote8.fsf@assigned-by-dhcp.cox.net>

```
Dear diary, on Fri, Sep 16, 2005 at 06:43:27PM CEST, I got a letter
where Junio C Hamano <junkio@cox.net> told me that...
> Petr Baudis <pasky@suse.cz> writes:
> 
> >> The latest StGIT snapshot uses .git/info/exclude. Probably next week I
> >> will make a new StGIT release.
> >
> > So does Cogito now. ;-) It still looks at .git/exclude as well and gives
> > warning if it exists.
> 
> Late last night I could not find in the list archive the "list
> consensus" I used to justify what 'git-status' does in this log
> message:
> 
>     Message-ID: <7vfysw89do.fsf@assigned-by-dhcp.cox.net>
>     From: Junio C Hamano <junkio@cox.net>
>     Subject: [PATCH] Teach git-status-script about git-ls-files --others
>     Date: Fri, 26 Aug 2005 18:18:59 -0700
> 
>     When there is non-empty $GIT_DIR/info/exclude file, use it along
>     with .gitignore per-directory exclude pattern files (which was
>     a convention agreed on the list while ago and is compatible with
>     Cogito) to generate a list of ignored files as well.
> 
>     Signed-off-by: Junio C Hamano <junkio@cox.net>
> 
> I do remember checking Cogito and StGIT and making sure the use
> of .gitignore is consistent with you two, but I do not remember
> if we had consensus on info/exclude now.  It could be that I was
> just hallucinating back then and ended up forcing this change
> onto you and your users by mistake in this round.

I'm too tired to search now (just after a night bus trip from Denmark -
actually, one of the bus drivers looked exactly like Linus, perhaps his
twin works for a Czech bus company?), but I believe we actually did
agree on using .git/info/exclude instead of .git/exclude in some old
now-forgotten thread, or we are having the same hallucinations.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
If you want the holes in your knowledge showing up try teaching
someone.  -- Alan Cox

```

## Sam Ravnborg, 2005-09-17 06:45

Subject: Re: Git and cogito uses different exclude files
Message-ID: <20050917064503.GA7583@mars.ravnborg.org>
URL: https://gitlist.dev/e/20050917064503.GA7583%40mars.ravnborg.org
In-Reply-To: <20050917055009.GB31324@pasky.or.cz>

```
> I'm too tired to search now (just after a night bus trip from Denmark -
Tell me next time and I will be happy to give a damn good danish beer!

	Sam

```
