summaryrefslogtreecommitdiffstats
path: root/vendor/code.gitea.io/git/repo_blame.go
blob: b48cbeea6c2d015c2d2c80995e33d9fe003df475 (plain)
1
2
3
4
5
6
7
8
9
10
// Copyright 2017 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

package git

// FileBlame return the Blame object of file
func (repo *Repository) FileBlame(revision, path, file string) ([]byte, error) {
	return NewCommand("blame", "--root", file).RunInDirBytes(path)
}