Skip to content

.gitignore pattern ambigous #1

@namibj

Description

@namibj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions