[gitiles] Add DownloadFile function

This change adds a helper function in gitiles.go which can be used to
download a file directly from Gitiles without checking out the full
repo.

Bug: 70425
Change-Id: I673edea581b5078e5b2198fb5b9621bea2a0ccea
Reviewed-on: https://fuchsia-review.googlesource.com/c/infra/infra/+/525604
Commit-Queue: Anthony Fandrianto <atyfto@google.com>
Fuchsia-Auto-Submit: Anthony Fandrianto <atyfto@google.com>
Reviewed-by: Oliver Newman <olivernewman@google.com>
2 files changed
tree: d1a1f8333ea0cf4b6227c290ccc3d778cfc5b353
  1. artifacts/
  2. buildbucket/
  3. checkout/
  4. cmd/
  5. codifier/
  6. digest/
  7. execution/
  8. gerrit/
  9. gitiles/
  10. monorail/
  11. serial/
  12. third_party/
  13. .gitignore
  14. AUTHORS
  15. go.mod
  16. go.sum
  17. LICENSE
  18. MAINTAINERS
  19. manifest
  20. PATENTS
  21. README.md
README.md

infra

This repo contains tools and config files necessary to run infrastructure related to builds, code review, version control, and continuous integrations.