From b9ca12498016e4ce3763d2beb4723f72e995ee1c Mon Sep 17 00:00:00 2001 From: Nicolai Skogheim Date: Fri, 7 Aug 2015 03:16:06 +0200 Subject: [PATCH] line-summary: tighten regex --- bin/git-line-summary | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-line-summary b/bin/git-line-summary index 64188c6..a48829b 100755 --- a/bin/git-line-summary +++ b/bin/git-line-summary @@ -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 }