title: Using the output of diff to create the patch
body: <p>I have something like this</p>
  
  <pre><code>src/sim/simulate.cc
  41d40
  &lt; #include "mem/mem-interface.h"
  90,91d88
  &lt;             dram_print_stats_common(curTick/500);
  &lt;
  src/mem/physical.hh
  52d51
  &lt;   public:
  55,56d53
  &lt;       public:
  &lt;
  58a56,57
  &gt;       public:
  &gt;
  61,62c60,61
  &lt;         virtual bool recvTiming(PacketPtr pkt); //baoyg
  &lt;
  ---
  </code></pre>
  
  <p>I believe this was created using the diff command in a source tree. What I want is to create the patch using that output, and to apply the same changes to my source tree.</p>