blob: 10f5f9d1d95ae38877b58dab396d0381fa1711a8 (
plain) (
tree)
|
|
If a patch file has hard links, refreshing it should break the links
so that the other copies are left unmodified.
$ mkdir patches
$ cat > patches/patch
< --- file.orig
< +++ file
< @@ -1 +1 @@
< -a
< +b
$ echo patch -p0 > patches/series
$ ln patches/patch hardlink
$ echo a > file
$ quilt push -q
> Applying patch %{P}patch
> Now at patch %{P}patch
$ echo c > file
$ quilt refresh --no-index
> Refreshed patch %{P}patch
$ cat patches/patch
> --- file.orig
> +++ file
> @@ -1 +1 @@
> -a
> +c
$ cat hardlink
> --- file.orig
> +++ file
> @@ -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 %{P}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
|