1#!/bin/bash 2 3 4function infocho() { printf "\033[100m$@\033[0m\n"; } 5infocho "============================" 6infocho "OUR VERSION OF CROSVM IS THIS MUCH FORKED:" 7UPSTREAM_COMMIT=$(git merge-base HEAD aosp/upstream-main) 8 9git diff HEAD..$UPSTREAM_COMMIT --stat -- $(find . -name "*.rs" -o -name "*.toml") 10 11function crosvm_take_theirs() { 12 git checkout $UPSTREAM_COMMIT -- $(find . -name "*.rs" -o -name "*.toml" | grep -v "/out/") 13} 14 15infocho "============================" 16