cos-kernel: Handle patches which contain renames If a patch renames a file, the output format in the logs of the patch command is: checking patch <x> (renamed from <y>) This would break the logic for collecting the list of files modified by a patch since the " (renamed from <y>)" part would get included in the file name passed to `git add`. Fix this by splitting the line and collecting the new and old file names. TEST=`cos-kernel prepare --patches=irdma` for the main-R129-cos-6.12 kernel (failed before, passes now) BUG=b/527927014 Change-Id: I6cfe938f2d9536f1f51b05f34d2e70feab97f764 Reviewed-on: https://cos-review.googlesource.com/c/cos/tools/+/185386 Cloud-Build: 228075978874@cloudbuild.gserviceaccount.com <228075978874@cloudbuild.gserviceaccount.com> Reviewed-by: Derek Taylor <ddtaylor@google.com> Tested-by: Kevin Berry <kpberry@google.com>
This is a repository of various tools developed for Container-Optimized OS. Examples include cos-gpu-installer, cos-toolbox, etc.
See CONTRIBUTING.md for how to contribute.