summaryrefslogblamecommitdiffstats
path: root/test/formats.test
blob: a91f27775854175f5eb0a71bbd5d2687e39c4b15 (plain) (tree)































































































                                                                             
	$ mkdir d
	$ cd d

	$ cat > test.txt
	< 1
	< 2
	< old
	< 4
	< 5

	$ quilt new test
	> Patch test is now on top

	$ quilt add test.txt
	> File test.txt added to patch 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 -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
	
	$ cd ..
	$ rm -rf d