line-summary: tighten regex

This commit is contained in:
Nicolai Skogheim 2015-08-07 03:16:06 +02:00
parent 7fbe00c311
commit b9ca124980

View file

@ -9,7 +9,7 @@ function single_file {
while read data
do
if [[ $(file $data) = *text* ]]; then #
git blame --line-porcelain $data 2>/dev/null | grep "author\ " | sed -n 's/^author //p';
git blame --line-porcelain $data 2>/dev/null | grep "^author\ " | sed -n 's/^author //p';
fi
done
}