diff options
author | Kelvin Zhang <zhangkelvin@google.com> | 2021-11-01 19:27:26 -0700 |
---|---|---|
committer | Kelvin Zhang <zhangkelvin@google.com> | 2021-11-02 02:38:22 +0000 |
commit | a90c04389f86ed4363674e20b0d5f171dea7ebeb (patch) | |
tree | 0a310ca653ef73c547d80da63c87fcb2c0636bcb /zucchini_commands.cc | |
parent | f2da819cb37cb2376c917506fb1eb154ec61586a (diff) | |
parent | 8bb965d29e918d0559589a215ff7f4bd0874bc08 (diff) | |
download | zucchini-a90c04389f86ed4363674e20b0d5f171dea7ebeb.tar.gz |
Merge remote-tracking branch 'aosp/upstream-main' into dev
This performs a merge on upstream zucchini.
Change-Id: I8a4844407558d6f1e439939ee634fe17ed7a4e55
Diffstat (limited to 'zucchini_commands.cc')
-rw-r--r-- | zucchini_commands.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/zucchini_commands.cc b/zucchini_commands.cc index 93929bd..0699cbe 100644 --- a/zucchini_commands.cc +++ b/zucchini_commands.cc @@ -51,6 +51,11 @@ zucchini::status::Code MainApply(MainParams params) { params.command_line.HasSwitch(kSwitchKeep)); } +zucchini::status::Code MainVerify(MainParams params) { + CHECK_EQ(1U, params.file_paths.size()); + return zucchini::VerifyPatch(params.file_paths[0]); +} + zucchini::status::Code MainRead(MainParams params) { CHECK_EQ(1U, params.file_paths.size()); base::File input_file(params.file_paths[0], |