$ mkdir d $ cd d $ mkdir patches sub $ cd sub $ quilt new here.diff > Patch %{_P}here.diff is now on top $ cd ../.. $ rm -rf d