From f2a413bef5c4f8cbbfae32a35f2540793ae011a2 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Thu, 2 Jun 2016 16:09:59 +0200 Subject: xlocate: force grep.lineNumber=false --- xlocate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlocate') diff --git a/xlocate b/xlocate index 995bd58..30234bc 100755 --- a/xlocate +++ b/xlocate @@ -70,7 +70,7 @@ if [ -d "$XLOCATE_GIT" ]; then if find /var/db/xbps/ -name '*repodata' -newer "$XLOCATE_GIT/HEAD" | grep -q .; then echo "xlocate: database outdated, please run xlocate -g." 1>&2 fi - git --git-dir="$XLOCATE_GIT" grep "$@" @ | + git -c grep.lineNumber=false --git-dir="$XLOCATE_GIT" grep "$@" @ | sed 's/^@://; s/:/\t/' | grep . elif [ -e "$XLOCATE_DB" ]; then if find /var/db/xbps/ -name '*repodata' -newer "$XLOCATE_DB" | grep -q .; then -- cgit 1.4.1