I want to compare the differnt commits with two repos, for example Android_10.0_r2 and Android_11.0_r3
the changes are frequent and since Google merge inner code to AOSP, some commit even older than Android_10.0_r2 merged to Android_11.0_r3， I don't want to miss that from git log checking
so I record all commit logs in both repos and select the different change_ids/commit_ids.
But since the git log is too much in AOSP and it have 400+ repos, it runs 1 hour+ in my PC.
Any idea that git command may have directly way for geting the different commit_ids between two repo?
The git diff with two repo dir shows diff of the files, since changelist is long, the commit message diff is more effective
Every version of AOSP has its own manifest. Use repo sync -n -m /path/to/manifest1.xml and repo sync -n -m /path/to/manifest2.xml to fetch repositories' data of both. -n instructs repo to fetch data only and not checkout/update the worktrees, which could be omitted if you want to see the real files.
And then use repo diffmanifests /path/to/manifest1.xml /path/to/manifest2.xml to display the diff commits between 2 code bases. It has an option --pretty-format=<FORMAT> which works like --pretty=<FORMAT> in git log.
However the output is still a bit rough. Another solution is making a script, in Python for example, to parse the 2 manifests and run git log or git diff to get the detailed information. It's much more flexible. To my experience, it won't take that long. Our code base has about 1500 repositories.
git diff in two repos and got commit id list