Suppose you branch off a branch newfeature from the master branch at commit C0. When the feature is ready, you merge it back to the master branch. Usually I then delete the newfeature branch.
Someone asks you for a patch file for that particular feature based on the commit C0, when you branched off the newfeature branch. So you don't want the patch to include any other feature which has been merged to the master branch.
Is there a way to get this after merging and deleting the newfeature branch? If not I guess that would be a potential scenario where you wouldn't delete feature branches, right?
To push it further. Suppose we branch the newfeature branch off the master branch some commits later, say C3, develope the feature and merge it back. Someone asks for a patch file of that particular feature but based on a the commit C0. Is there a way to get that patch file?
Example of the potential situation:
M0-M1-M2---M3--M4-M5
\ \-G0-G1-/ /
\-F0-F1-F2-/