mirror of
https://github.com/go-gitea/gitea
synced 2024-12-23 07:27:51 +01:00
Update code.gitea.io/git
Signed-off-by: Jonas Franz <info@jonasfranz.software>
This commit is contained in:
parent
8bb51135b6
commit
5c2171e0b8
4
vendor/code.gitea.io/git/repo_blame.go
generated
vendored
4
vendor/code.gitea.io/git/repo_blame.go
generated
vendored
@ -8,12 +8,12 @@ import "fmt"
|
|||||||
|
|
||||||
// FileBlame return the Blame object of file
|
// FileBlame return the Blame object of file
|
||||||
func (repo *Repository) FileBlame(revision, path, file string) ([]byte, error) {
|
func (repo *Repository) FileBlame(revision, path, file string) ([]byte, error) {
|
||||||
return NewCommand("blame", "--root", file).RunInDirBytes(path)
|
return NewCommand("blame", "--root", "--", file).RunInDirBytes(path)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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("blame", fmt.Sprintf("-L %d,%d", line, line), "-p", revision, file).RunInDir(path)
|
res, err := NewCommand("blame", fmt.Sprintf("-L %d,%d", line, line), "-p", revision, "--", file).RunInDir(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
6
vendor/vendor.json
vendored
6
vendor/vendor.json
vendored
@ -3,10 +3,10 @@
|
|||||||
"ignore": "test appengine",
|
"ignore": "test appengine",
|
||||||
"package": [
|
"package": [
|
||||||
{
|
{
|
||||||
"checksumSHA1": "jkAY8qJRd3N2isGPpoCMoq+QkBc=",
|
"checksumSHA1": "ZaRoMZesTnkzM7+2BoY1CTED3Eg=",
|
||||||
"path": "code.gitea.io/git",
|
"path": "code.gitea.io/git",
|
||||||
"revision": "258a447de641abb5382ad9e2f166e6011dff30fc",
|
"revision": "0077debc17a58c821f4e62e815a54c1ab52da157",
|
||||||
"revisionTime": "2018-05-13T13:21:47Z"
|
"revisionTime": "2018-05-17T01:19:24Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"checksumSHA1": "WMD6+Qh2+5hd9uiq910pF/Ihylw=",
|
"checksumSHA1": "WMD6+Qh2+5hd9uiq910pF/Ihylw=",
|
||||||
|
Loading…
Reference in New Issue
Block a user