We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 438de98 + e2b6eaf commit 6988f43Copy full SHA for 6988f43
bin/git-ignore
@@ -32,7 +32,7 @@ function add_patterns {
32
local file="${1/#~/$HOME}"
33
for pattern in "${@:2}"; do
34
echo "... adding '$pattern'"
35
- (test -f "$file" && test "$pattern" && grep -q -- "$pattern" "$file") || echo "$pattern" >> "$file"
+ (test -f "$file" && test "$pattern" && grep -q -F -x -- "$pattern" "$file") || echo "$pattern" >> "$file"
36
done
37
}
38
0 commit comments