snapshot2.test

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

TEST
56
字号
	$ rm -rf d	$ mkdir -p d/patches d/d	$ cd d	$ quilt new snapshot	> Patch %{P}snapshot is now on top	$ cd d	$ quilt add f.txt	> File d/f.txt added to patch %{_P}snapshot	$ cat > f.txt	< f.txt	$ quilt add g.txt	> File d/g.txt added to patch %{_P}snapshot	$ cat > g.txt	< g.txt	$ quilt refresh	> Refreshed patch %{_P}snapshot	$ quilt snapshot	$ quilt fork	> Fork of patch %{_P}snapshot created as %{_P}snapshot-2	$ quilt remove g.txt	> File d/g.txt removed from patch %{_P}snapshot-2	$ quilt add h.txt	> File d/h.txt added to patch %{_P}snapshot-2	$ cat > h.txt	< h.txt	$ cat >> f.txt	< more changes	$ quilt refresh	> Refreshed patch %{_P}snapshot-2	$ quilt diff --snapshot | grep -v "^\\(---\\|+++\\)"	> Index: d/d/f.txt	> ===================================================================	> @@ -1 +1,2 @@	>  f.txt	> +more changes	> Index: d/d/g.txt	> ===================================================================	> @@ -1 +0,0 @@	> -g.txt	> Index: d/d/h.txt	> ===================================================================	> @@ -0,0 +1 @@	> +h.txt		$ cd ../..	$ rm -rf d

⌨️ 快捷键说明

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