Skip to content

Commit

Permalink
Merge pull request #32 from makhov/feature/blame
Browse files Browse the repository at this point in the history
Adding git blame
  • Loading branch information
tboerger committed Feb 6, 2017
2 parents dd951bf + 176c743 commit 2187360
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions repo_blame.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 2187360

Please sign in to comment.