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.go 319B

12345678910111213
  1. // Copyright 2020 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package git
  4. // GetBlob finds the blob object in the repository.
  5. func (repo *Repository) GetBlob(idStr string) (*Blob, error) {
  6. id, err := NewIDFromString(idStr)
  7. if err != nil {
  8. return nil, err
  9. }
  10. return repo.getBlob(id)
  11. }