Skip to contentSkip to conversation

Files excluded but not ignored

DISCUSSION Jason Wenger 3 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

I prefer to not add core.* files to my ignore listings because I find it helpful to see them in git status -- It helps me notice and clean them up periodically. Not having them ignored is also good ,because it allows git clean to care of core.* files.

The problem is that git add -A, git stash -u, etc, remain interested in the core files.

Trying to start up discussion of whether there would be merit to a "half- ignored" state -- Files which are excluded from tracking, but which still show in git status, and which are removed by git clean.

Not trying to propose yet how .git/exclude or .gitignore would be formatted or anything like that. Just looking for opinions on whether such a state would be considered by the community as a good thing and merit the added complexity in the code.

#1 lore raw
Quoted 8 lines · Jason Wenger

I prefer to not add core.* files to my ignore listings because I find it helpful to see them in git status -- It helps me notice and clean them up periodically. Not having them ignored is also good ,because it allows git clean to care of core.* files.

The problem is that git add -A, git stash -u, etc, remain interested in the core files.

Quoted 8 lines

Trying to start up discussion of whether there would be merit to a "half- ignored" state -- Files which are excluded from tracking, but which still show in git status, and which are removed by git clean.

Not trying to propose yet how .git/exclude or .gitignore would be formatted or anything like that. Just looking for opinions on whether such a state would be considered by the community as a good thing and merit the added complexity in the code.

I see no merit for "ignored and never to be tracked, but are still shown loudly in the untracked list" myself. Use cases for "ignored and never to be tracked, but not expendable" class were mentioned often in the past, though.

#2 lore raw
Quoted 9 lines · Junio C Hamano
Quoted 3 lines · Jason Wenger

Trying to start up discussion of whether there would be merit to a "half- ignored" state -- Files which are excluded from tracking, but which still show in git status, and which are removed by git clean.

I see no merit for "ignored and never to be tracked, but are still shown loudly in the untracked list" myself. Use cases for "ignored and never to be tracked, but not expendable" class were mentioned often in the past, though.

A new state seems over the top.

Jason, would adding a parameter to "git status" telling it to ignore all .gitignores give you what you need?

Regards, Ben