From 7dd7cc7ebc75959eaabd8be3ff49bbc1533f54b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Piliszek?= Date: Sat, 10 Aug 2024 16:41:12 +0200 Subject: [PATCH] git-grep: update comment It was outdated and missing detail. --- modules/git/grep.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/git/grep.go b/modules/git/grep.go index 0f4d297187..ba870e0541 100644 --- a/modules/git/grep.go +++ b/modules/git/grep.go @@ -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 - 6^@bin = "gitea" + 6^@8^@bin = "gitea" HEAD:.changelog.yml - 2^@repo: go-gitea/gitea + 2^@10^@repo: go-gitea/gitea */ var results []*GrepResult cmd := NewCommand(ctx, "grep",