Add flush_cache flag to input_api.change.NewContents
NewContents always reads from cache, but it is sometimes useful flush cache and use NewContents as a way to read the updatedcontents of a file. For example, some presubmit checks run formatters and check if any files are modified. Many of these use `git diff` but that isn't available in a non-git workspace, so checks will have to rely on reading contents directly. Bug: b/333744051 Change-Id: I3b3f4c88cc130607020ad599bbc15616d559725c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5740609 Reviewed-by: Josip Sokcevic <sokcevic@chromium.org> Commit-Queue: Gavin Mak <gavinmak@google.com>changes/09/5740609/4
parent
8dde9800ee
commit
495e14b7b6
Loading…
Reference in New Issue