From c75b501f779d78b393bcf7e21a33aa4518dbb3f0 Mon Sep 17 00:00:00 2001 From: Jason Song Date: Wed, 12 Jul 2023 12:06:16 +0800 Subject: [PATCH] fix: remove FileBlame --- modules/git/repo_blame.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/git/repo_blame.go b/modules/git/repo_blame.go index e25efa2d3bfa5..139cdd7be964a 100644 --- a/modules/git/repo_blame.go +++ b/modules/git/repo_blame.go @@ -7,12 +7,6 @@ import ( "fmt" ) -// FileBlame return the Blame object of file -func (repo *Repository) FileBlame(revision, path, file string) ([]byte, error) { - stdout, _, err := NewCommand(repo.Ctx, "blame", "--root").AddDashesAndList(file).RunStdBytes(&RunOpts{Dir: path}) - return stdout, err -} - // LineBlame returns the latest commit at the given line func (repo *Repository) LineBlame(revision, path, file string, line uint) (*Commit, error) { res, _, err := NewCommand(repo.Ctx, "blame").