commit | 8f6966a2126a0e7c55dfc5d0397140205796443b | [log] [tgz] |
---|---|---|
author | Oliver Newman <olivernewman@google.com> | Tue Apr 18 16:57:37 2023 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Apr 18 16:57:37 2023 +0000 |
tree | 72fe058ca369be299321f8a2121f3d4bb9085444 | |
parent | 70cf8821a4c669e263efa655fc5d5947e669d329 [diff] |
[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>
Scalable Hermetic Analysis and Checks.
go install go.fuchsia.dev/shac-project/shac@latest shac check shac doc shac.star | less
⚠ 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.