mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 21:32:40 +00:00
f3fc4d6279
Motivation for this is to support writing comments that will certainly be revisited before merge. Release Notes: - N/A
11 lines
300 B
Bash
Executable file
11 lines
300 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
# Brackets are used around characters so these don't show up in normal search.
|
|
pattern='tod[o]!|FIXM[E]'
|
|
result=$(git grep --no-color --ignore-case --line-number --extended-regexp -e $pattern || true)
|
|
echo "${result}"
|
|
if [[ -n "${result}" ]]; then
|
|
exit 1
|
|
fi
|