Open junxnone opened 1 year ago
diff
commit
git format-patch -1
N
git format-patch -N
git format-patch commitID
patch
git format-patch commitID1 commitID2
git diff > your_patch_name.patch
git apply your_patch_name.patch
git am your_patch_name.patch
From 2fd011b6ff5b96a1b6bf2c449dfa0d26fce59103 Mon Sep 17 00:00:00 2001 From: Giorgos Karagounis <giorgos.karagounis@oqton.com> Date: Mon, 18 Mar 2024 16:37:26 +0100 Subject: [PATCH] Fix for jpegturbo Windows build --- 3rdparty/libjpeg-turbo/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty/libjpeg-turbo/CMakeLists.txt b/3rdparty/libjpeg-turbo/CMakeLists.txt index ac0aaf63e1..6e508c8860 100644 --- a/3rdparty/libjpeg-turbo/CMakeLists.txt +++ b/3rdparty/libjpeg-turbo/CMakeLists.txt @@ -16,7 +16,7 @@ endif() message(STATUS "libjpeg-turbo: VERSION = ${VERSION}, BUILD = ${BUILD}") math(EXPR BITS "${CMAKE_SIZEOF_VOID_P} * 8") -string(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} CMAKE_SYSTEM_PROCESSOR_LC) +string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" CMAKE_SYSTEM_PROCESSOR_LC) if(CMAKE_SYSTEM_PROCESSOR_LC MATCHES "x86_64" OR CMAKE_SYSTEM_PROCESSOR_LC MATCHES "amd64" OR -- 2.34.1
From 2fd011b6ff5b96a1b6bf2c449dfa0d26fce59103
From: Giorgos Karagounis <giorgos.karagounis@oqton.com>
Subject: [PATCH] Fix for jpegturbo Windows build
diff --git a/3rdparty/libjpeg-turbo/CMakeLists.txt b/3rdparty/libjpeg-turbo/CMakeLists.txt
@@ -16,7 +16,7 @@
-/+
Git Patch
生成 patch
format-patch
diff
会保留commit
记录消息生成最后一个 commit 的 patch
生成最后
N
个 patch生成 commitID 之后的 patch
生成 两个
commit
之间的patch
git diff
使用
patch
apply
am
Patch 描述
From 2fd011b6ff5b96a1b6bf2c449dfa0d26fce59103
commit idFrom: Giorgos Karagounis <giorgos.karagounis@oqton.com>
作者及邮箱Subject: [PATCH] Fix for jpegturbo Windows build
描述信息diff --git a/3rdparty/libjpeg-turbo/CMakeLists.txt b/3rdparty/libjpeg-turbo/CMakeLists.txt
修改了哪个文件@@ -16,7 +16,7 @@
修改标志,显示从 第16行截取显示7行,-/+
代表patch 前/后 不同的行数或截取显示行数