Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I create a patch that spans commits using Sourcetree?

I observe that when I "Create a patch", the dialog creates the patch that is "to" the commit I selected "from" it's predecessor.

In the dialog, I can tantalisingly select two separate commits and the diff panel shows the diffs that are between those two - that's the patch that I want.

But when I press "OK", I still get the single commit patch.

Is there some way to achieve what I meant, using Sourcetree?

(note: it might be nice to have a "sourcetree" tag?)

like image 689
GreenAsJade Avatar asked Aug 25 '12 02:08

GreenAsJade


1 Answers

You could use git diff oldHash..newHash > file.patch command to get single patch for multiple commits.

like image 187
Greg Avatar answered Oct 24 '22 21:10

Greg