在 Linux 内核中重新提交补丁
re-submitting a patch in Linux kernel
当我在 Linux 内核子系统中提交 patch
时,例如 netdev,其中存在两棵树 net.git
和 net-next.git
,net.git
通常用于修复错误,错误地在 net-next.git
中提交了错误修复,我是否应该像 [RESEND PATCH net.git ... ]
中那样重新发送它?
重新发送补丁时,第一次重新发送时使用 v1,其他重新发送时使用 any,数字递增 1。
指南:
[PATCH v1] folder-name: subject-name
我讨厌两次的补丁示例:
From 57162b5cf23aa94f9902317f84c473a523f1bdf8 Mon Sep 17 00:00:00 2001
From: Kitone Elvis Peter <elviskitone@gmail.com>
Date: Fri, 22 Jun 2018 13:09:07 +0300
Subject: [PATCH v2] block: Use SPDX License Identifier
There is need to identify a license in source code files
for open source software.
Signed-off-by: Kitone Elvis Peter <elviskitone@gmail.com>
---
drivers/block/brd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/block/brd.c b/drivers/block/brd.c
index 66cb0f8..4f998ed 100644
--- a/drivers/block/brd.c
+++ b/drivers/block/brd.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* Ram backed block device driver.
*
--
2.7.4
当我在 Linux 内核子系统中提交 patch
时,例如 netdev,其中存在两棵树 net.git
和 net-next.git
,net.git
通常用于修复错误,错误地在 net-next.git
中提交了错误修复,我是否应该像 [RESEND PATCH net.git ... ]
中那样重新发送它?
重新发送补丁时,第一次重新发送时使用 v1,其他重新发送时使用 any,数字递增 1。
指南:
[PATCH v1] folder-name: subject-name
我讨厌两次的补丁示例:
From 57162b5cf23aa94f9902317f84c473a523f1bdf8 Mon Sep 17 00:00:00 2001
From: Kitone Elvis Peter <elviskitone@gmail.com>
Date: Fri, 22 Jun 2018 13:09:07 +0300
Subject: [PATCH v2] block: Use SPDX License Identifier
There is need to identify a license in source code files
for open source software.
Signed-off-by: Kitone Elvis Peter <elviskitone@gmail.com>
---
drivers/block/brd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/block/brd.c b/drivers/block/brd.c
index 66cb0f8..4f998ed 100644
--- a/drivers/block/brd.c
+++ b/drivers/block/brd.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* Ram backed block device driver.
*
--
2.7.4