Merge pull request #32 from makhov/feature/blame

Adding git blame
This commit is contained in:
Thomas Boerger
2017-02-06 09:32:33 +01:00
committed by GitHub
+10
View File
@@ -0,0 +1,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)
}