先查看下remote 如下
qingliu@Mokee:~/defy/device/moto/jordan-common$ git remote -v
gh git://github.com/Quarx2k/android_device_moto_jordan-common (fetch)
gh git://github.com/Quarx2k/android_device_moto_jordan-common (push)
然后 git fetch (remote)(branch)
如下:
qingliu@Mokee:~/defy/device/moto/jordan-common$git fetch gh cm11.0-3.0
remote: Counting objects: 17, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 11 (delta 5), reused 9 (delta 3)
Unpacking objects: 100% (11/11), done.
From git://github.com/Quarx2k/android_device_moto_jordan-common
- branch cm11.0-3.0 -> FETCH_HEAD
然后 git cherry-pick commit ID(commitID 可以通过别人的提交记录获得)
如下:
qingliu@Mokee:~/defy/device/moto/jordan-common$git cherry-pick 633b77216e5cfa06d591e6e8662845c336cd2c41
[cm-10.2 5e9d284] add opensource camerahal
Author: Quarx2k <agent00791@gmail.com>
24 files changed, 7572 insertions(+), 1742 deletions(-)
create mode 100644 camera/Android.mk
create mode 100644 camera/CameraHal.h
create mode 100644 camera/CameraHal_Module.cpp
create mode 100644 camera/CameraHardware.cpp
create mode 100644 camera/CameraHardware.h
create mode 100644 camera/V4L2Camera.cpp
create mode 100644 camera/V4L2Camera.h
create mode 100644 camera/converter.cpp
create mode 100644 camera/converter.h
create mode 100644 camera/hal_public.h
create mode 100644 camera/media.h
create mode 100644 camera/saResize.cpp
create mode 100644 camera/saResize.h
create mode 100644 camera/v4l2-mediabus.h
create mode 100644 camera/v4l2-subdev.h
OK,欢迎大家一起讨论,感谢 但丁不淡定,moonlight-Nexus5 的提示。