I have tried write script to analysis the commits diff with two repos: AOSP and QC OSS release, AOSP is the upstream and the QC OSS release have it own local changes.