1 $ mkdir patches 2 3 $ cat > a 4 < a 5 < b 6 < c 7 8 $ quilt new test.diff 9 > Patch %{P}test.diff is now on top 10 11 $ quilt add a 12 > File a added to patch %{P}test.diff 13 14 $ cat > a 15 < a 16 < b 17 < c 18 19 $ quilt refresh 20 > Warning: trailing whitespace in lines 1,3 of a 21 > Refreshed patch %{P}test.diff 22 23 $ grep '[ \t]$' patches/test.diff 24 > +a 25 > +c 26 27 $ quilt refresh -U0 28 > Warning: trailing whitespace in lines 1,3 of a 29 > Refreshed patch %{P}test.diff 30 31 $ quilt refresh --strip-trailing-whitespace 32 > Removing trailing whitespace from lines 1,3 of a 33 > Refreshed patch %{P}test.diff 34 35 $ grep '[ \t]$' patches/test.diff 36 37 $ quilt pop -q 38 > Removing patch %{P}test.diff 39 > No patches applied 40 41 $ cat > a 42 < a 43 < b 44 < c 45 46 $ quilt new test2.diff 47 > Patch %{P}test2.diff is now on top 48 49 $ quilt add a 50 > File a added to patch %{P}test2.diff 51 52 $ cat > a 53 < a 54 < b 55 < c 56 57 $ quilt refresh -c 58 > Warning: trailing whitespace in lines 1,3 of a 59 > Refreshed patch %{P}test2.diff 60 61 $ grep '[ \t]$' patches/test2.diff 62 > ! a 63 > ! c 64 65 $ quilt refresh -C0 66 > Warning: trailing whitespace in lines 1,3 of a 67 > Refreshed patch %{P}test2.diff 68 69 $ quilt refresh -c --strip-trailing-whitespace 70 > Removing trailing whitespace from lines 1,3 of a 71 > Refreshed patch %{P}test2.diff 72 73 $ grep '[ \t]$' patches/test2.diff 74 75 $ quilt pop -q 76 > Removing patch %{P}test2.diff 77 > No patches applied 78