]> source.dussan.org Git - gitea.git/commit
Improve grep search (#30843)
authorwxiaoguang <wxiaoguang@gmail.com>
Fri, 3 May 2024 09:13:48 +0000 (17:13 +0800)
committerGitHub <noreply@github.com>
Fri, 3 May 2024 09:13:48 +0000 (09:13 +0000)
commit0f3e717a1abb2b2161b87dac557beb6475224a2e
tree239585a4006625fe5acae2bb8400c6a20d9d0aea
parent9f0ef3621a3b63ccbe93f302a446b67dc54ad725
Improve grep search (#30843)

Reduce the context line number to 1, make "git grep" search respect the
include/exclude patter, and fix #30785
modules/git/grep.go
modules/git/grep_test.go
modules/setting/glob.go [new file with mode: 0644]
modules/setting/indexer.go
routers/web/repo/search.go
routers/web/repo/search_test.go [new file with mode: 0644]