Commit b34aaf6c by Anders Borum

test that specific lines can negate broader ignore lines

parent 8cad7e62
...@@ -575,3 +575,11 @@ void test_ignore_path__negative_prefix_rule(void) ...@@ -575,3 +575,11 @@ void test_ignore_path__negative_prefix_rule(void)
assert_is_ignored(true, "ff"); assert_is_ignored(true, "ff");
assert_is_ignored(false, "f"); assert_is_ignored(false, "f");
} }
void test_ignore_path__negative_more_specific(void)
{
cl_git_rewritefile("attr/.gitignore", "*.txt\n!/dir/test.txt\n");
assert_is_ignored(true, "test.txt");
assert_is_ignored(false, "dir/test.txt");
assert_is_ignored(true, "outer/dir/test.txt");
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment