You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

repo_blob_nogogit.go 300B

12345678910111213141516
  1. // Copyright 2020 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. //go:build !gogit
  4. package git
  5. func (repo *Repository) getBlob(id ObjectID) (*Blob, error) {
  6. if id.IsZero() {
  7. return nil, ErrNotExist{id.String(), ""}
  8. }
  9. return &Blob{
  10. ID: id,
  11. repo: repo,
  12. }, nil
  13. }