Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
b34aaf6c
Commit
b34aaf6c
authored
Jun 14, 2021
by
Anders Borum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test that specific lines can negate broader ignore lines
parent
8cad7e62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
tests/ignore/path.c
+8
-0
No files found.
tests/ignore/path.c
View file @
b34aaf6c
...
@@ -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"
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment