How do I merge in JGit?

Let's say I want to merge master with foo branch, how do I do this?

Edit
Report