]> source.dussan.org Git - gitea.git/commit
Improve grep search (#30843) (#30850)
authorGiteabot <teabot@gitea.io>
Fri, 3 May 2024 09:59:33 +0000 (17:59 +0800)
committerGitHub <noreply@github.com>
Fri, 3 May 2024 09:59:33 +0000 (17:59 +0800)
commit1f9a9fab5fbd48a634918f64bb579ae05405ff56
treefa1abec8c53c9900ecbb328dbcca36f752d27117
parent7ad2d039fdf7b936e642cdd1dee70bc2ed687489
Improve grep search (#30843) (#30850)

Backport #30843 by wxiaoguang

Reduce the context line number to 1, make "git grep" search respect the
include/exclude patter, and fix #30785

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
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]