File: repo_blame.go

package info (click to toggle)
golang-code.gitea-git 0.0~git20171222.4ec3654-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 408 kB
  • sloc: sh: 278; makefile: 39
file content (10 lines) | stat: -rw-r--r-- 368 bytes parent folder | download
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)
}