-
Notifications
You must be signed in to change notification settings - Fork 231
How to submit patch
Yinhang Liu edited this page Mar 7, 2019
·
6 revisions
- Watch libxcam project
go to libxcam, and hit 'watch'.
Then you can receive any others commit/comments - Fork libxcam to your own account, hit 'fork'
- Get libxcam code to local.
$ git clone git@github.com:user/libxcam.git
- Add 'upstream' for rebase
$ git remote add upstream https://github.com/intel/libxcam.git
$ git fetch upstream
- Edit patch.
- Format patch before commit.
$ ./code_style.sh
$ git commit -m "xxxx"
- Rebase with upstream
$ git fetch upstream
$ git rebase upstream/master
If failed, fix conflicts first. - Push commit to your account.
$ git push origin
- Go to github home, create 'pull request'
- Wait for review, If accepted, maintainer would merge to upstream; else, continue edit patch
-
Every time, before edit source code, run
$ git fetch upstream
$ git rebase upstream
-
If there's conflicts but you are sure can be fixed. try to edit conflict files, then
$ git add xxxx
# xxxx means conflict files
$ git rebase --continue
-
If maintainer fixed your patch. Try
$ git fetch upstream
$ git format-patch -2
#backup your local patches, 2 means there are 2 local patches to backup
$ git reset --hard upstream/master
# be careful of --hard, this may reset all your local patches. that's why need to backup at first
$ git am 000*.patch
# to restore you local patches, if there's conflicts, try to fix.
Releases
- libxcam 1.5.0 release
- libxcam 1.4.0 release
- libxcam 1.3.0 release
- libxcam 1.2.2 release
- libxcam 1.2.1 release
- libxcam 1.2.0 release
- libxcam 1.1.0 release
- libxcam 1.0.0 release
- libxcam 0.9.0 release
- libxcam 0.8.0 release
- libxcam 0.7.0 release
- libxcam 0.6.1 release
- libxcam 0.6.0 release
- libxcam 0.5.0 release
- libxcam 0.4.0 release
- libxcam 0.2.1 release
- libxcam 0.2.0 release