Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore negation works differently than it Git #69

Open
alerque opened this issue Apr 26, 2024 · 1 comment
Open

Ignore negation works differently than it Git #69

alerque opened this issue Apr 26, 2024 · 1 comment

Comments

@alerque
Copy link

alerque commented Apr 26, 2024

I just struggled with a Flake for a while and finally figured out some sources were being excluded from the Flake because ignore rules were being handled differently than Git itself does.

!scripts/*.in
scripts/*

In Git, this will result in all the autoconf template files ending with .in being tracked and everything else in the scripts directory (the AC_CONFIG_FILE output in my case) ignored. With gitignoreSource the order of operations is different and everything is getting ignored.

@roberth
Copy link
Member

roberth commented Apr 26, 2024

It seems that only the opposite order is tested:

2-*/[^.]*
!2-*/1?
!2-*/30
!/2-*/70
!/40
!50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants