搭建repo 镜像服务器:
https://docs.gitlab.com/ee/workflow/repository_mirroring.html
关于repo的详解:https://gotgit.readthedocs.io/en/latest/04-git-model/060-android-model.html
如此方便的功能在百度竟然没有任何介绍.
google一下
https://groups.google.com/forum/#!topic/repo-discuss/g14uOda8yyg
Nearly two weeks ago Julien Campergue comitted revision dd65422 to the master branch of the git-repo repository. It adds the new "diffmanifests" command to "repo". You could exploit it in combination with the "manifest" command and its "--revision-as-HEAD" option like this:
repo manifest --revision-as-HEAD > manifest_before_sync.xml
repo sync -j16
repo manifest --revision-as-HEAD > manifest_after_sync.xml
repo diffmanifests $PWD/manifest_before_sync.xml $PWD/manifest_after_sync.xml
You have to use the cumbersome notation $PWD/... because in the "diffmanifests" command relative paths start from project's
".repo/manifests" folder.
Of course you have to switch to repo's master branch before you are able to utilize the "diffmanifests" command (be aware of it not being a stable branch for production use):
cd .repo
git checkout -b my_master origin/master
所以在dd65422提交之后才有了diffmanifest命令:
usage: repo COMMAND [ARGS]
The most commonly used repo commands are:
abandon Permanently abandon a development branch
branch View current topic branches
branches View current topic branches
checkout Checkout a branch for development
cherry-pick Cherry-pick a change.
diff Show changes between commit and working tree
diffmanifests Manifest diff utility
download Download and checkout a change
grep Print lines matching a pattern
info Get info on the manifest branch, current branch or unmerged branches
init Initialize repo in the current directory
list List projects and their associated directories
overview Display overview of unmerged project branches
prune Prune (delete) already merged topics
rebase Rebase local branches on upstream branch
smartsync Update working tree to the latest known good revision
stage Stage file(s) for commit
start Start a new branch for development
status Show the working tree status
sync Update working tree to the latest revision
upload Upload changes for code review
See 'repo help <command>' for more information on a specific command.
See 'repo help --all' for a complete list of recognized commands
diffmanifests Manifest diff utility
download Download and checkout a change
grep Print lines matching a pattern
info Get info on the manifest branch, current branch or unmerged branches
init Initialize repo in the current directory
list List projects and their associated directories
overview Display overview of unmerged project branches
prune Prune (delete) already merged topics
rebase Rebase local branches on upstream branch
smartsync Update working tree to the latest known good revision
stage Stage file(s) for commit
start Start a new branch for development
status Show the working tree status
sync Update working tree to the latest revision
upload Upload changes for code review
See 'repo help <command>' for more information on a specific command.
See 'repo help --all' for a complete list of recognized commands
使用效果:
changed projects :
xx/xx changed from b367e0529cd93f4c762ae3f32a5add58939ca764 to 8b03215abce2ed430e823982a13fc418a0883437
[-] b367e05 add new make goal:manifests
[+] 8b03215 add new make goal:manifests
xx/xx changed from aec65571a7e03533558f99f89fa41e060adc8b52 to 80c963b9413fc010daa4683eed6a25fb9246c65b
[-] aec6557 add some service related to YiLian.
[+] 45e2e05 fix compile error.