git format-patch to generate a patch for a specific file part of a commit
<p>I am trying to merge some files that were added for a feature in a branch called <code>dev</code>. Some of the files are added and some are changed. Is there a way to generate a patch for selected files part of a commit so that they can be applied on master? I am looking to then apply the patch to a master.</p>

<p><code>git format-patch -1 SHA1 --stdout</code> is generating a patch for the whole commit but I need to generate the patch only specific files in the commit.  </p>