Software_Engineering__git icon indicating copy to clipboard operation
Software_Engineering__git copied to clipboard

.gitignore pattern ambigous

Open namibj opened this issue 9 years ago • 2 comments

The question

What .gitignore pattern would you use to ignore all .txt files in the doc folder?

is ambigous with it asking for

doc/**/*.txt

because

doc/*.txt

is the right one according to the minimum information principle. The correct question would be

What .gitignore pattern would you use to ignore all .txt files under the doc folder?

, as the in is the most fitting word to describe files only directly in the doc folder, but not any subfolders. I know this is just a slight difference and subject to personal preferences, but we should be able to declare it too ambiguous and therefore subject to result in different thoughtpaths on each revising and we know this results in poor learning efficiency.

namibj avatar Oct 07 '16 19:10 namibj

feel free to create PR for that ;)

Stvad avatar Oct 08 '16 20:10 Stvad

I will, once I get time to do it. Just wanted to make the issue clear and for others to see.

namibj avatar Oct 08 '16 21:10 namibj