GreenAsJade
GreenAsJade

Reputation: 14685

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?)

Upvotes: 7

Views: 4648

Answers (1)

Greg
Greg

Reputation: 1660

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

Upvotes: 5

Related Questions