aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/xanzy/go-gitlab/repository_files.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-11-11 02:22:52 +0100
committerGitHub <noreply@github.com>2019-11-11 02:22:52 +0100
commit6a1c8c4dd45c8602e67d6ccbb51165a3c5b073d2 (patch)
tree6e689a15ec7329a5bf89b0720ec6d05910860a64 /vendor/github.com/xanzy/go-gitlab/repository_files.go
parent802b61e254c40042028d5f08bbed0968e78da265 (diff)
parent83eb7abd438f55161663e1b9381da5930cde06be (diff)
downloadgit-bug-6a1c8c4dd45c8602e67d6ccbb51165a3c5b073d2.tar.gz
Merge pull request #245 from MichaelMure/dependabot/dep/github.com/xanzy/go-gitlab-0.22.0
build(deps): bump github.com/xanzy/go-gitlab from 0.21.0 to 0.22.0
Diffstat (limited to 'vendor/github.com/xanzy/go-gitlab/repository_files.go')
-rw-r--r--vendor/github.com/xanzy/go-gitlab/repository_files.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/github.com/xanzy/go-gitlab/repository_files.go b/vendor/github.com/xanzy/go-gitlab/repository_files.go
index fa97bf5f..26149319 100644
--- a/vendor/github.com/xanzy/go-gitlab/repository_files.go
+++ b/vendor/github.com/xanzy/go-gitlab/repository_files.go
@@ -43,6 +43,7 @@ type File struct {
Ref string `json:"ref"`
BlobID string `json:"blob_id"`
CommitID string `json:"commit_id"`
+ SHA256 string `json:"content_sha256"`
}
func (r File) String() string {
@@ -128,6 +129,7 @@ func (s *RepositoryFilesService) GetFileMetaData(pid interface{}, fileName strin
FileName: resp.Header.Get("X-Gitlab-File-Name"),
FilePath: resp.Header.Get("X-Gitlab-File-Path"),
Ref: resp.Header.Get("X-Gitlab-Ref"),
+ SHA256: resp.Header.Get("X-Gitlab-Content-Sha256"),
}
if sizeString := resp.Header.Get("X-Gitlab-Size"); sizeString != "" {