History

Fix typos

Kian-Meng Ang committed 4 years ago

Commit e9fcb701 parent aa639d858 files · +73 −73Browse files

Showing the changes to git-worktree/src (1 of 58 files). Show all

Unified · Split

git-worktree/src/fs/cache/state.rs+2−2
@@ -102,10 +102,10 @@ impl Ignore { · 101 unmodified lines
102102 if mapping.pattern.is_negative() {
103103 dir_match = Some(match_);
104104 } else {
105− // Note that returning here is wrong if this pattern _was_ preceeded by a negative pattern that
105+ // Note that returning here is wrong if this pattern _was_ preceded by a negative pattern that
106106 // didn't match the directory, but would match now.
107107 // Git does it similarly so we do too even though it's incorrect.
108− // To fix this, one would probably keep track of whether there was a preceeding negative pattern, and
108+ // To fix this, one would probably keep track of whether there was a preceding negative pattern, and
109109 // if so we check the path in full and only use the dir match if there was no match, similar to the negative
110110 // case above whose fix fortunately won't change the overall result.
111111 return match_.into();

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