History

adapt to changes in git-glob (#301)

Sebastian Thiel committed 4 years ago

Commit 0effef01 parent 568f0132 files · +5 −5Browse files

Unified · Split

2 files
  1. git-attributes/tests/parse/attribute.rs +1 −1
  2. git-attributes/tests/parse/ignore.rs +4 −4
git-attributes/tests/parse/attribute.rs+1−1
@@ -30,7 +30,7 @@ fn line_numbers_are_counted_correctly() { · 29 unmodified lines
30 (pattern(r"!foo.html", Mode::NO_SUB_DIR, None), vec![set("x")], 8),30 (pattern(r"!foo.html", Mode::NO_SUB_DIR, None), vec![set("x")], 8),
31 (pattern(r"#a/path", Mode::empty(), None), vec![unset("a")], 10),31 (pattern(r"#a/path", Mode::empty(), None), vec![unset("a")], 10),
32 (32 (
33 pattern(r"/*", Mode::ABSOLUTE | Mode::NO_SUB_DIR | Mode::ENDS_WITH, Some(1)),33 pattern(r"*", Mode::ABSOLUTE | Mode::NO_SUB_DIR | Mode::ENDS_WITH, Some(0)),
34 vec![unspecified("b")],34 vec![unspecified("b")],
35 1135 11
36 ),36 ),
git-attributes/tests/parse/ignore.rs+4−4
@@ -20,10 +20,10 @@ fn line_numbers_are_counted_correctly() { · 19 unmodified lines
20 ("*.[oa]".into(), Mode::NO_SUB_DIR, 2),20 ("*.[oa]".into(), Mode::NO_SUB_DIR, 2),
21 ("*.html".into(), Mode::NO_SUB_DIR | Mode::ENDS_WITH, 5),21 ("*.html".into(), Mode::NO_SUB_DIR | Mode::ENDS_WITH, 5),
22 ("foo.html".into(), Mode::NO_SUB_DIR | Mode::NEGATIVE, 8),22 ("foo.html".into(), Mode::NO_SUB_DIR | Mode::NEGATIVE, 8),
23 ("/*".into(), Mode::NO_SUB_DIR | Mode::ENDS_WITH | Mode::ABSOLUTE, 11),23 ("*".into(), Mode::NO_SUB_DIR | Mode::ENDS_WITH | Mode::ABSOLUTE, 11),
24 ("/foo".into(), Mode::NEGATIVE | Mode::NO_SUB_DIR | Mode::ABSOLUTE, 12),24 ("foo".into(), Mode::NEGATIVE | Mode::NO_SUB_DIR | Mode::ABSOLUTE, 12),
25 ("/foo/*".into(), Mode::ABSOLUTE, 13),25 ("foo/*".into(), Mode::ABSOLUTE, 13),
26 ("/foo/bar".into(), Mode::ABSOLUTE | Mode::NEGATIVE, 14)26 ("foo/bar".into(), Mode::ABSOLUTE | Mode::NEGATIVE, 14)
27 ]27 ]
28 );28 );
29}29}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t