From 040712b4ef7527396fd453b0e1f031681d308066 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 19 Mar 2015 13:47:04 +0100 Subject: hard-linked-patch.test: Test the header command Extend the hard-linked patch test case to also check the behavior when updating the header of such a patch. --- test/hard-linked-patch.test | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'test') diff --git a/test/hard-linked-patch.test b/test/hard-linked-patch.test index 7063fd0..279c595 100644 --- a/test/hard-linked-patch.test +++ b/test/hard-linked-patch.test @@ -34,3 +34,27 @@ $ cat hardlink > @@ -1 +1 @@ > -a > +b + +Same goes for a patch header update. + +$ rm -f hardlink +$ ln patches/patch hardlink + +$ quilt header -r +< c is so much better than a +> Replaced header of patch patches/patch + +$ cat patches/patch +> c is so much better than a +> --- file.orig +> +++ file +> @@ -1 +1 @@ +> -a +> +c + +$ cat hardlink +> --- file.orig +> +++ file +> @@ -1 +1 @@ +> -a +> +c -- cgit