From 102cc8cc581a5eb8b2a1c736182c31ed9c0c2507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E7=82=9C?= Date: Fri, 1 Dec 2023 14:25:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=8A=E6=B8=B8=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E6=97=B6=EF=BC=8C=E9=80=89=E6=8B=A9=E8=A1=A5=E4=B8=81?= =?UTF-8?q?=E5=89=8Dpatch-queue=E5=88=86=E6=94=AF=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E5=88=9B=E5=BB=BA=EF=BC=8C=E4=BD=BF=E7=94=A8?= =?UTF-8?q?gbp=20import=20--force?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...345\214\205git\345\267\245\344\275\234\346\265\201.md" | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git "a/\347\244\276\345\214\272\345\274\200\345\217\221\346\214\207\345\215\227/openKylin\346\272\220\347\240\201\345\214\205git\345\267\245\344\275\234\346\265\201.md" "b/\347\244\276\345\214\272\345\274\200\345\217\221\346\214\207\345\215\227/openKylin\346\272\220\347\240\201\345\214\205git\345\267\245\344\275\234\346\265\201.md" index 95f7249..3aa90c1 100644 --- "a/\347\244\276\345\214\272\345\274\200\345\217\221\346\214\207\345\215\227/openKylin\346\272\220\347\240\201\345\214\205git\345\267\245\344\275\234\346\265\201.md" +++ "b/\347\244\276\345\214\272\345\274\200\345\217\221\346\214\207\345\215\227/openKylin\346\272\220\347\240\201\345\214\205git\345\267\245\344\275\234\346\265\201.md" @@ -431,10 +431,9 @@ git commit -m 'merge upstream 4.13.17' ```Bash # 基于旧版本创建临时分支 git checkout packaging/openkylin/yangtze -git checkout -b tmp # 导入patch,形成git commit记录 # 导入前也可以筛选一下补丁列表,修改debian/patches/series,删除不要的补丁,然后提交即可 -gbp pq import +gbp pq import --force # 计算补丁数量 wc debian/patches/series # 14 14 511 debian/patches/series # 获取commit id,重定向到文件保存 @@ -458,7 +457,7 @@ git checkout packaging/openkylin/yangtze git rm debian/patches/series git commit -m 'prepare for new patch list' # 创建临时分支,移植低版本patch -gbp pq import +gbp pq import --force # 从后往前读取patch-queue commit列表文件 /tmp/patch-list.txt,根据提交信息和补丁文件名确定是否要集成该补丁,对需要集成的补丁执行cherry-pick git cherry-pick b2cf5dd7923c50c4b4e1809564a7da63a3e38312 f32df40245f054363698225f44158c2673a06978 2853828b649d5c826bda93c9a11a9720954b915c # 导出patch列表 @@ -468,7 +467,8 @@ git add debian/patches dch -R git add debian/changelog git commit -m 'Apply patches on new upstream 4.13.17' -git branch --delete --force tmp # 删除tmp分支 +# patch-queue分支可以删除了 +git branch -D patch-queue/packaging/openkylin/yangtze ``` 假如存在冲突,根据实际需求进行冲突合并(git mergetool; git cherry-pick --continue)或者跳过此patch(git cherry-pick --skip)。 -- Gitee