about summary refs log tree commit diff
path: root/xlocate
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-06-02 16:09:59 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-06-02 16:09:59 +0200
commitf2a413bef5c4f8cbbfae32a35f2540793ae011a2 (patch)
tree5690f34a14366c62dc4c21cbffcc82c12fbf8b22 /xlocate
parentd07f8ec8e2432a35860af5b7ff2894bdf3742d28 (diff)
downloadxtools-f2a413bef5c4f8cbbfae32a35f2540793ae011a2.tar.gz
xtools-f2a413bef5c4f8cbbfae32a35f2540793ae011a2.tar.xz
xtools-f2a413bef5c4f8cbbfae32a35f2540793ae011a2.zip
xlocate: force grep.lineNumber=false v0.41.1
Diffstat (limited to 'xlocate')
-rwxr-xr-xxlocate2
1 files changed, 1 insertions, 1 deletions
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