When working with Eclipse with the Subclipse plugin, it is possible to generate a patch for the code changed as illustrated below: