[scm] Add include_deleted arg to affected_files()

Sometimes it's desirable to include deleted files in the list of
affected files, so we should stop unconditionally excluding them. They
are still excluded by default but can be included by setting
`include_deleted = True`.

`new_lines()` returns an empty tuple for any deleted files.

Change-Id: I9875fdaf7a43f5e01a7643b89c7177168d265e84
Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/shac/+/838977
Reviewed-by: Marc-Antoine Ruel <maruel@google.com>
Fuchsia-Auto-Submit: Oliver Newman <olivernewman@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
5 files changed
tree: 72fe058ca369be299321f8a2121f3d4bb9085444
  1. .github/
  2. doc/
  3. internal/
  4. scripts/
  5. .gitignore
  6. AUTHORS
  7. check_doc.star
  8. codecov.yml
  9. CONTRIBUTING.md
  10. go.mod
  11. go.star
  12. go.sum
  13. LICENSE
  14. licenses.star
  15. main.go
  16. OWNERS
  17. PATENTS
  18. README.md
  19. shac.star
README.md

shac

Scalable Hermetic Analysis and Checks.

Usage

go install go.fuchsia.dev/shac-project/shac@latest
shac check
shac doc shac.star | less

Documentation

Contributing

⚠ The source of truth is at https://fuchsia.googlesource.com/shac-project/shac.git and uses Gerrit for code review.

See CONTRIBUTING.md to submit changes.