Skip to content

Commit aee14b9

Browse files
wolfogreGiteaBot
andauthored
Remove git.FileBlame (#25841)
The `FileBlame` function looks strange, it has `revision` as argument but doesn't use it. Since the function never be used, I think we could just remove it. If anyone thinks it should be kept, please help fix `revision`. Co-authored-by: Giteabot <[email protected]>
1 parent 8b89563 commit aee14b9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

modules/git/repo_blame.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ import (
77
"fmt"
88
)
99

10-
// FileBlame return the Blame object of file
11-
func (repo *Repository) FileBlame(revision, path, file string) ([]byte, error) {
12-
stdout, _, err := NewCommand(repo.Ctx, "blame", "--root").AddDashesAndList(file).RunStdBytes(&RunOpts{Dir: path})
13-
return stdout, err
14-
}
15-
1610
// LineBlame returns the latest commit at the given line
1711
func (repo *Repository) LineBlame(revision, path, file string, line uint) (*Commit, error) {
1812
res, _, err := NewCommand(repo.Ctx, "blame").

0 commit comments

Comments
 (0)