formats.test

来自「linux下各种patch的管理工具」· TEST 代码 · 共 122 行

TEST
122
字号
	$ rm -rf d	$ mkdir -p d/patches	$ cd d	$ cat > test.txt	< 1	< 2	< old	< 4	< 5	$ quilt new test	> Patch %{P}test is now on top	$ quilt add test.txt	> File test.txt added to patch %{P}test	$ cat > test.txt	< 1	< 2	< new	< 4	< 5	$ quilt diff	> Index: d/test.txt	> ===================================================================	> --- d.orig/test.txt	> +++ d/test.txt	> @@ -1,5 +1,5 @@	>  1	>  2	> -old	> +new	>  4	>  5	$ quilt diff --no-index	> --- d.orig/test.txt	> +++ d/test.txt	> @@ -1,5 +1,5 @@	>  1	>  2	> -old	> +new	>  4	>  5	$ quilt diff -R	> Index: d/test.txt	> ===================================================================	> --- d.orig/test.txt	> +++ d/test.txt	> @@ -1,5 +1,5 @@	>  1	>  2	> -new	> +old	>  4	>  5	$ quilt diff -U1	> Index: d/test.txt	> ===================================================================	> --- d.orig/test.txt	> +++ d/test.txt	> @@ -2,3 +2,3 @@	>  2	> -old	> +new	>  4	$ quilt diff -c	> Index: d/test.txt	> ===================================================================	> *** d.orig/test.txt	> --- d/test.txt	> ***************	> *** 1,5 ****	>   1	>   2	> ! old	>   4	>   5	> --- 1,5 ----	>   1	>   2	> ! new	>   4	>   5	$ quilt diff -C1	> Index: d/test.txt	> ===================================================================	> *** d.orig/test.txt	> --- d/test.txt	> ***************	> *** 2,4 ****	>   2	> ! old	>   4	> --- 2,4 ----	>   2	> ! new	>   4		$ quilt diff -p ab	> Index: b/test.txt	> ===================================================================	> --- a/test.txt	> +++ b/test.txt	> @@ -1,5 +1,5 @@	>  1	>  2	> -old	> +new	>  4	>  5	$ cd ..	$ rm -rf d

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?