Skip to contentSkip to conversation

Git and cogito uses different exclude files

DISCUSSION Pierre Ossman 5 participants 6 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 4 lines · Pierre Ossman

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

Signature · 1 line
Catalin
#2 lore raw

Dear diary, on Fri, Sep 16, 2005 at 10:34:19AM CEST, I got a letter where Catalin Marinas <[email protected]> told me that...

Quoted 8 lines
Quoted 4 lines · Pierre Ossman

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

Signature · 4 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
If you want the holes in your knowledge showing up try teaching
someone.  -- Alan Cox
#3 lore raw
Quoted 5 lines · Petr Baudis
Quoted 2 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: <[email protected]>
From: Junio C Hamano <[email protected]>
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.

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.

#4 lore raw

Dear diary, on Fri, Sep 16, 2005 at 06:43:27PM CEST, I got a letter where Junio C Hamano <[email protected]> told me that...

Quoted 22 lines
Quoted 5 lines · Petr Baudis
Quoted 2 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: <[email protected]>
From: Junio C Hamano <[email protected]>
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.

Quoted 7 lines

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.

Signature · 4 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
If you want the holes in your knowledge showing up try teaching
someone.  -- Alan Cox
#5 lore raw
Quoted 1 line

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