mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-25 19:26:09 +01:00
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 <teabot@gitea.io>
This commit is contained in:
parent
8b89563bf1
commit
aee14b9c0b
|
@ -7,12 +7,6 @@ import (
|
||||||
"fmt"
|
"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
|
// LineBlame returns the latest commit at the given line
|
||||||
func (repo *Repository) LineBlame(revision, path, file string, line uint) (*Commit, error) {
|
func (repo *Repository) LineBlame(revision, path, file string, line uint) (*Commit, error) {
|
||||||
res, _, err := NewCommand(repo.Ctx, "blame").
|
res, _, err := NewCommand(repo.Ctx, "blame").
|
||||||
|
|
Loading…
Reference in a new issue