summaryrefslogtreecommitdiffstats
path: root/test/hard-linked-patch.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/hard-linked-patch.test')
-rw-r--r--test/hard-linked-patch.test24
1 files changed, 24 insertions, 0 deletions
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