0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 23:33:15 -05:00

Merge pull request 'git-grep: update comment' (#4921) from yoctozepto/forgejo:git-grep-update-comment into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4921
Reviewed-by: Shiny Nematoda <snematoda@noreply.codeberg.org>
This commit is contained in:
Earl Warren 2024-08-11 09:47:58 +00:00
commit a4da672134

View file

@ -53,13 +53,14 @@ func GrepSearch(ctx context.Context, repo *Repository, search string, opts GrepO
}() }()
/* /*
The output is like this ( "^@" means \x00): The output is like this ("^@" means \x00; the first number denotes the line,
the second number denotes the column of the first match in line):
HEAD:.air.toml HEAD:.air.toml
6^@bin = "gitea" 6^@8^@bin = "gitea"
HEAD:.changelog.yml HEAD:.changelog.yml
2^@repo: go-gitea/gitea 2^@10^@repo: go-gitea/gitea
*/ */
var results []*GrepResult var results []*GrepResult
cmd := NewCommand(ctx, "grep", cmd := NewCommand(ctx, "grep",