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
3030 (pattern(r"!foo.html", Mode::NO_SUB_DIR, None), vec![set("x")], 8),
3131 (pattern(r"#a/path", Mode::empty(), None), vec![unset("a")], 10),
3232 (
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)),
3434 vec![unspecified("b")],
3535 11
3636 ),
git-attributes/tests/parse/ignore.rs+4−4
@@ -20,10 +20,10 @@ fn line_numbers_are_counted_correctly() { · 19 unmodified lines
2020 ("*.[oa]".into(), Mode::NO_SUB_DIR, 2),
2121 ("*.html".into(), Mode::NO_SUB_DIR | Mode::ENDS_WITH, 5),
2222 ("foo.html".into(), Mode::NO_SUB_DIR | Mode::NEGATIVE, 8),
23− ("/*".into(), Mode::NO_SUB_DIR | Mode::ENDS_WITH | Mode::ABSOLUTE, 11),
24− ("/foo".into(), Mode::NEGATIVE | Mode::NO_SUB_DIR | Mode::ABSOLUTE, 12),
25− ("/foo/*".into(), Mode::ABSOLUTE, 13),
26− ("/foo/bar".into(), Mode::ABSOLUTE | Mode::NEGATIVE, 14)
23+ ("*".into(), Mode::NO_SUB_DIR | Mode::ENDS_WITH | Mode::ABSOLUTE, 11),
24+ ("foo".into(), Mode::NEGATIVE | Mode::NO_SUB_DIR | Mode::ABSOLUTE, 12),
25+ ("foo/*".into(), Mode::ABSOLUTE, 13),
26+ ("foo/bar".into(), Mode::ABSOLUTE | Mode::NEGATIVE, 14)
2727 ]
2828 );
2929 }

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