Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git libchromiumcontent创建修补程序文件_Git_Diff_Patch_Electron - Fatal编程技术网

Git libchromiumcontent创建修补程序文件

Git libchromiumcontent创建修补程序文件,git,diff,patch,electron,Git,Diff,Patch,Electron,我正在尝试对一个叫做。通过查看这些文件,似乎对代码所做的所有更改都是通过.patch文件完成的,我以前没有见过这些文件,该文件的示例如下: ffmpeg.patch diff --git a/ffmpeg.gyp b/ffmpeg.gyp index 31997bc..741d37a 100755 --- a/ffmpeg.gyp +++ b/ffmpeg.gyp @@ -414,14 +414,6 @@ '_snprintf=avpriv_snprin

我正在尝试对一个叫做。通过查看这些文件,似乎对代码所做的所有更改都是通过
.patch
文件完成的,我以前没有见过这些文件,该文件的示例如下:

ffmpeg.patch

diff --git a/ffmpeg.gyp b/ffmpeg.gyp
index 31997bc..741d37a 100755
--- a/ffmpeg.gyp
+++ b/ffmpeg.gyp
@@ -414,14 +414,6 @@
                     '_snprintf=avpriv_snprintf',
                     'vsnprintf=avpriv_vsnprintf',
                   ],
-                }],
-                ['target_arch == "x64"', {
-                  # TODO(wolenetz): We should fix this.  http://crbug.com/171009
-                  'msvs_disabled_warnings' : [
-                    4267
-                  ],
-                }],
-                ['ffmpeg_component == "shared_library"', {
                   # Fix warnings about a local symbol being inefficiently imported.
                   'msvs_settings': {
                     'VCCLCompilerTool': {
@@ -431,6 +423,14 @@
                       ],
                     },
                   },
+                }],
+                ['target_arch == "x64"', {
+                  # TODO(wolenetz): We should fix this.  http://crbug.com/171009
+                  'msvs_disabled_warnings' : [
+                    4267
+                  ],
+                }],
+                ['ffmpeg_component == "shared_library"', {
                   'sources': [
                     '<(shared_generated_dir)/ffmpeg.def',
               ],
diff--git a/ffmpeg.gyp b/ffmpeg.gyp
索引31997bc..741d37a 100755
---a/ffmpeg.gyp
+++b/ffmpeg.gyp
@@ -414,14 +414,6 @@
“_snprintf=avpriv_snprintf”,
'vsnprintf=avpriv_vsnprintf',
],
-                }],
-['target_arch==“x64”{
-托多(沃伦茨):我们应该解决这个问题。http://crbug.com/171009
-“MSV\u已禁用\u警告”:[
-                    4267
-                  ],
-                }],
-['ffmpeg_组件==“共享_库”{
#修复有关本地符号导入效率低下的警告。
“MSV_设置”:{
“VCCLCompilerTool”:{
@@ -431,6 +423,14 @@
],
},
},
+                }],
+['target_arch==“x64”{
+托多(沃伦茨):我们应该解决这个问题。http://crbug.com/171009
+“MSV\u已禁用\u警告”:[
+                    4267
+                  ],
+                }],
+['ffmpeg_组件==“共享_库”{
“来源”:[

“正如repo页面上所述,libchromiumcontent是Chrome浏览器的(如下图所示)。它被Electron使用,因此也被Electron应用程序使用。为了支持这一点,Electron团队定期从上游引入更改,并对其进行修补

布伦丹·福斯特在NDC{Syndney}的“电子内部漫游”演讲中说