1. A machine-implemented method, comprising: in response to selecting one or more patches, performing a dependency analysis to determine one or more related patches that have a dependency relationship with the selected patches; extracting source code associated with the selected patches and the related patches based on the dependency analysis without extracting source code of unselected and unrelated patches; and exporting the selected patches, the related patches, and the extracted source code to be shared with another user.