threads / discuss / 1823

Git and cogito uses different exclude files

Subject: Git and cogito uses different exclude files

## tl;dr

6 messages between Sep 16, 2005 and Sep 17, 2005.

replies: 5people: 5as markdown or json

Pierre Ossman· Sep 16, 2005, 07:49 UTC · lore

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· Sep 16, 2005, 08:34 UTC · re: Pierre Ossman · lore

Re: Git and cogito uses different exclude files

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· Sep 16, 2005, 10:44 UTC · re: Catalin Marinas · lore

Re: Git and cogito uses different exclude files

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

Show 8 quoted lines
> 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· Sep 16, 2005, 16:43 UTC · re: Petr Baudis · lore

Re: Git and cogito uses different exclude files

Petr Baudis <pasky@suse.cz> writes:
Show 5 quoted lines
>> 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· Sep 17, 2005, 05:50 UTC · re: Junio C Hamano · lore

Re: Git and cogito uses different exclude files

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

Show 29 quoted lines
> 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· Sep 17, 2005, 06:45 UTC · re: Petr Baudis · lore

Re: Git and cogito uses different exclude files

> 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

← back to recent threads